diff --git a/a8/sysutils.cc b/a8/sysutils.cc index 068fa27..bfca194 100644 --- a/a8/sysutils.cc +++ b/a8/sysutils.cc @@ -188,7 +188,7 @@ namespace a8 time_t GetDateTimeSeconds(const char* datetime_str) { int g_time_zone = 8; - struct tm stm; + struct tm stm = {0}; strptime(datetime_str, "%Y-%m-%d %H:%M:%S", &stm); long t = mktime(&stm); return t + g_time_zone*3600;