diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2020-04-12 23:13:18 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2020-04-12 23:13:18 +0200 |
commit | b3f027c605992040981c81d34ccc02a9f1976c07 (patch) | |
tree | fe768eef31a268f7ef511b8c46240c5d1609fb88 /util/iconfig.c | |
parent | 4d04d317f1e2c8e46b8fc04b4a20689da471a5d3 (diff) | |
parent | 1396e325ab6f31d20694c57bef57eb4f9ce63205 (diff) |
Merge branch 'release/debian/3.1.6-1'debian/3.1.6-1
Diffstat (limited to 'util/iconfig.c')
-rw-r--r-- | util/iconfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/iconfig.c b/util/iconfig.c index 25e0c67..49d690f 100644 --- a/util/iconfig.c +++ b/util/iconfig.c @@ -2681,7 +2681,7 @@ main(int argc, char **argv) } /*endif not readonly*/ do_exit: - if (fd_bmc != stdout) fclose(fd_bmc); + if (fd_bmc != NULL && fd_bmc != stdout) fclose(fd_bmc); ipmi_close_(); if (nerrs > 0) { printf("Warning: %d ok, %d errors occurred, last error = %d\n",ngood,nerrs,lasterr); |