diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-04-10 15:24:46 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-04-10 15:24:46 +0200 |
commit | 34e0324637fe188085130701a2235108cf391d23 (patch) | |
tree | 131041ed4e17fdfbf0f767d10e9613b8cb91ee48 /src/InputReader.h | |
parent | b042d58100282b480834b283fb40f3b5390327e8 (diff) | |
download | dabmod-34e0324637fe188085130701a2235108cf391d23.tar.gz dabmod-34e0324637fe188085130701a2235108cf391d23.tar.bz2 dabmod-34e0324637fe188085130701a2235108cf391d23.zip |
Only print closing message if really closing file
Diffstat (limited to 'src/InputReader.h')
-rw-r--r-- | src/InputReader.h | 4 |
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_); } } |