diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2015-03-16 21:17:16 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2015-03-16 22:40:53 +0100 |
commit | 8708961c5a680838eec71ff76a57cd8ce338f044 (patch) | |
tree | e14e9690b55a224929892d0f01240a2611708d90 /__root__ | |
parent | b68df377eff049912edda0bdc8264a883541b693 (diff) | |
download | clufter-8708961c5a680838eec71ff76a57cd8ce338f044.tar.gz clufter-8708961c5a680838eec71ff76a57cd8ce338f044.tar.xz clufter-8708961c5a680838eec71ff76a57cd8ce338f044.zip |
ccs-flatten/flatten.c: avoid fclose(NULL)
(finding of static analysis)
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to '__root__')
-rw-r--r-- | __root__/ccs-flatten/flatten.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/__root__/ccs-flatten/flatten.c b/__root__/ccs-flatten/flatten.c index 2b1e3cc..02a1096 100644 --- a/__root__/ccs-flatten/flatten.c +++ b/__root__/ccs-flatten/flatten.c @@ -1,5 +1,5 @@ /* - Copyright 2014 Red Hat, Inc. + Copyright 2015 Red Hat, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the @@ -211,7 +211,7 @@ flatten(int argc, char **argv) xmlDocFormatDump(f, d, 1); out: - if (f != stdout) + if (f && f != stdout) fclose(f); conf_close(); |