diff options
Diffstat (limited to 'include/configparser.h')
-rw-r--r-- | include/configparser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/configparser.h b/include/configparser.h index 4b83d26d7..f44b7c8a5 100644 --- a/include/configparser.h +++ b/include/configparser.h @@ -63,7 +63,7 @@ struct FileWrapper FILE* const f; bool close_with_pclose; FileWrapper(FILE* file, bool use_pclose = false) : f(file), close_with_pclose(use_pclose) {} - operator bool() { return f; } + operator bool() { return (f != NULL); } operator FILE*() { return f; } ~FileWrapper() { |