aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-04-10 15:24:46 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-04-10 15:24:46 +0200
commit34e0324637fe188085130701a2235108cf391d23 (patch)
tree131041ed4e17fdfbf0f767d10e9613b8cb91ee48 /src
parentb042d58100282b480834b283fb40f3b5390327e8 (diff)
downloaddabmod-34e0324637fe188085130701a2235108cf391d23.tar.gz
dabmod-34e0324637fe188085130701a2235108cf391d23.tar.bz2
dabmod-34e0324637fe188085130701a2235108cf391d23.zip
Only print closing message if really closing file
Diffstat (limited to 'src')
-rw-r--r--src/InputReader.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/InputReader.h b/src/InputReader.h
index dcf88cc..13d49b8 100644
--- a/src/InputReader.h
+++ b/src/InputReader.h
@@ -91,9 +91,9 @@ class InputFileReader : public InputReader
~InputFileReader()
{
- fprintf(stderr, "\nClosing input file...\n");
-
if (inputfile_ != NULL) {
+ fprintf(stderr, "\nClosing input file...\n");
+
fclose(inputfile_);
}
}