diff --git a/lib/config.cpp b/lib/config.cpp index 408a80d1c..ec614f4b1 100644 --- a/lib/config.cpp +++ b/lib/config.cpp @@ -57,7 +57,7 @@ Config::~Config() /* Close configuration file */ if (remote_file) afclose(remote_file); - else if (local_file != stdin) + else if (local_file && local_file != stdin) fclose(local_file); if (root)