1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-26 22:43: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) if (fp == NULL)
goto on_error; goto on_error;
if (fwrite(data, len, 1, fp) == 1) if (fwrite(data, len, 1, fp) != 1)
goto on_error; goto on_error;
fclose(fp); fclose(fp);
free(data);
return 0; return 0;
on_error: on_error: