aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/calendar.cpp
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-07-19 13:03:37 +0200
committerSimon Warta <[email protected]>2015-07-27 13:04:40 +0200
commitbff6f93b9043926897001ffcf67030b0e6a0a254 (patch)
tree803b6a29ba3d36ed05ecbdf6ddbe46ffa83d9577 /src/lib/utils/calendar.cpp
parent519cb1d28e082524797905016cc338a846f88011 (diff)
Avoid 0 as nullpointer warning on MinGW
Diffstat (limited to 'src/lib/utils/calendar.cpp')
-rw-r--r--src/lib/utils/calendar.cpp2
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