1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-23 11:23:26 +01: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: