diff options
author | Sven Nierlein <sven@nierlein.org> | 2014-06-28 20:14:02 (GMT) |
---|---|---|
committer | Sven Nierlein <sven@nierlein.org> | 2014-06-28 20:14:02 (GMT) |
commit | ea8ab2002cd72f657582f4dd0a0580bd10131401 (patch) | |
tree | 43245ea6bf7f3e7cd0e6ca344dfc94c68189cca2 /lib | |
parent | e566021a54c500aa2ee0f17bfe4f95d1fd1be243 (diff) | |
parent | 9123f6146c5dd3285d8fb78cf3a8cd52bad17ec1 (diff) | |
download | monitoring-plugins-ea8ab2002cd72f657582f4dd0a0580bd10131401.tar.gz |
Merge pull request #1263 from waja/coverity_fixes
Serveral coverity fixes from nagios-plugins
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils_cmd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/utils_cmd.c b/lib/utils_cmd.c index 4c6d0be..9e214bd 100644 --- a/lib/utils_cmd.c +++ b/lib/utils_cmd.c | |||
@@ -390,6 +390,9 @@ cmd_file_read ( char *filename, output *out, int flags) | |||
390 | 390 | ||
391 | if(out) | 391 | if(out) |
392 | out->lines = _cmd_fetch_output (fd, out, flags); | 392 | out->lines = _cmd_fetch_output (fd, out, flags); |
393 | |||
394 | if (close(fd) == -1) | ||
395 | die( STATE_UNKNOWN, _("Error closing %s: %s"), filename, strerror(errno) ); | ||
393 | 396 | ||
394 | return 0; | 397 | return 0; |
395 | } | 398 | } |