1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-07-01 16:57:45 +02:00

fix blocklist saving bug

This commit is contained in:
Jfreegman 2014-10-03 23:41:30 -04:00
parent 7eebbd982d
commit 8c3e3ebe24

View File

@ -167,10 +167,11 @@ static int save_blocklist(char *path)
if (fp == NULL)
goto on_error;
if (fwrite(data, len, 1, fp) == 1)
if (fwrite(data, len, 1, fp) != 1)
goto on_error;
fclose(fp);
free(data);
return 0;
on_error: