home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cc0252
)
In save_game(), check for error return code of fclose(), too.
author
Christian Heller
<c.heller@plomlompom.de>
Wed, 21 Aug 2013 02:54:47 +0000
(
04:54
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Wed, 21 Aug 2013 02:54:47 +0000
(
04:54
+0200)
src/misc.c
patch
|
blob
|
history
diff --git
a/src/misc.c
b/src/misc.c
index dac4c974f07767228510e4444583a02be3f43d38..cf69c8a8ecc91b7813c50d0585c10124b91e8c81 100644
(file)
--- 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
);
}