1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-10-09 23:33:17 +03:00

Add some missing close() and fclose() return code checks.

Fix exit statuses of reporting tools (2.02.19).
This commit is contained in:
Alasdair Kergon
2007-01-25 14:37:48 +00:00
parent 232da7ecc7
commit 2e1b92e3ea
15 changed files with 70 additions and 39 deletions

View File

@@ -59,8 +59,6 @@
# include <malloc.h>
#endif
static FILE *_log;
static int _get_env_vars(struct cmd_context *cmd)
{
const char *e;
@@ -1114,8 +1112,4 @@ void destroy_toolcontext(struct cmd_context *cmd)
activation_exit();
fin_log();
fin_syslog();
if (_log)
fclose(_log);
}