From 34e0324637fe188085130701a2235108cf391d23 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 10 Apr 2015 15:24:46 +0200 Subject: Only print closing message if really closing file --- src/InputReader.h | 4 ++-- 1 file 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_); } } -- cgit v1.2.3