From: Christian Heller Date: Wed, 21 Aug 2013 02:54:47 +0000 (+0200) Subject: In save_game(), check for error return code of fclose(), too. X-Git-Tag: tce~1086 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/static/day?a=commitdiff_plain;h=a71cdad2127723325c5ab170c1cd1dfa7075b0a3;p=plomrogue In save_game(), check for error return code of fclose(), too. --- diff --git a/src/misc.c b/src/misc.c index dac4c97..cf69c8a 100644 --- a/src/misc.c +++ b/src/misc.c @@ -147,7 +147,7 @@ extern void save_game(struct World * world) err = err | write_map_objects(world, world->monster, file); err = err | write_map_objects(world, world->item, file); exit_err(err, world, err_msg); - fclose(file); + exit_err(fclose(file), world, err_msg); }