Merge pull request #359 from sanjay24/master

json_dump_file API returns success even when fclose fails
This commit is contained in:
Petri Lehtinen 2017-08-06 07:14:18 +03:00 committed by GitHub
commit 93e8cd7d68

View File

@ -481,7 +481,9 @@ int json_dump_file(const json_t *json, const char *path, size_t flags)
result = json_dumpf(json, output, flags);
fclose(output);
if(fclose(output) != 0)
return -1;
return result;
}