summaryrefslogtreecommitdiff
path: root/include/configparser.h
diff options
context:
space:
mode:
authorAdam <adam@sigterm.info>2012-10-12 14:50:05 -0700
committerAdam <adam@sigterm.info>2012-10-12 14:50:05 -0700
commitc05ad37bfd03486475889485606ed5cffc7bf5a2 (patch)
treefe01825889769500a0f080371a0714aa15505b9a /include/configparser.h
parente496d321efe3e9b27f2f116bd22a05ec44aec564 (diff)
parent5b9682275e384635a1fd9f7320cf4d9a604a43b4 (diff)
Merge pull request #320 from ChrisTX/insp20+cleanupwin
Windows: In-depth cleanup (see details)
Diffstat (limited to 'include/configparser.h')
-rw-r--r--include/configparser.h2
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()
{