mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-26 15:03:27 +01:00
fix blocklist saving bug
This commit is contained in:
parent
7eebbd982d
commit
8c3e3ebe24
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user