summaryrefslogtreecommitdiffstats
path: root/__root__
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2015-03-16 21:17:16 +0100
committerJan Pokorný <jpokorny@redhat.com>2015-03-16 22:40:53 +0100
commit8708961c5a680838eec71ff76a57cd8ce338f044 (patch)
treee14e9690b55a224929892d0f01240a2611708d90 /__root__
parentb68df377eff049912edda0bdc8264a883541b693 (diff)
downloadclufter-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.c4
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();