diff options
author | Simon Warta <[email protected]> | 2015-07-19 13:03:37 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-07-27 13:04:40 +0200 |
commit | bff6f93b9043926897001ffcf67030b0e6a0a254 (patch) | |
tree | 803b6a29ba3d36ed05ecbdf6ddbe46ffa83d9577 /src/lib/utils/calendar.cpp | |
parent | 519cb1d28e082524797905016cc338a846f88011 (diff) |
Avoid 0 as nullpointer warning on MinGW
Diffstat (limited to 'src/lib/utils/calendar.cpp')
-rw-r--r-- | src/lib/utils/calendar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils/calendar.cpp b/src/lib/utils/calendar.cpp index 0ef8be356..f62303e49 100644 --- a/src/lib/utils/calendar.cpp +++ b/src/lib/utils/calendar.cpp @@ -26,7 +26,7 @@ std::tm do_gmtime(std::time_t time_val) gmtime_r(&time_val, &tm); // Unix/SUSv2 #else std::tm* tm_p = std::gmtime(&time_val); - if (tm_p == 0) + if (tm_p == nullptr) throw Encoding_Error("time_t_to_tm could not convert"); tm = *tm_p; #endif |