diff options
author | Yuri Gorshenin <y@mmaps.me> | 2015-04-03 14:23:08 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:41:36 +0300 |
commit | 7e21339eacb8154fee47c51baa60ee2c716f49e6 (patch) | |
tree | 9a6096a020218b8f690e429288345994013a5eeb /base/timer.cpp | |
parent | 9e5ac4ef2a843481e59cbe5295c785a92a374bf9 (diff) |
Review fixes.
Diffstat (limited to 'base/timer.cpp')
-rw-r--r-- | base/timer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/base/timer.cpp b/base/timer.cpp index 51568af311..accb7f1ea0 100644 --- a/base/timer.cpp +++ b/base/timer.cpp @@ -68,6 +68,7 @@ uint32_t TodayAsYYMMDD() { time_t rawTime = time(NULL); tm * pTm = gmtime(&rawTime); + CHECK(pTm, ("Can't get current date.")); return GenerateTimestamp(pTm->tm_year, pTm->tm_mon, pTm->tm_mday); } |