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:
parent
7eebbd982d
commit
8c3e3ebe24
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user