Fix uninitialized warning 73/61773/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 10 Mar 2016 11:32:55 +0000 (20:32 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 10 Mar 2016 11:32:55 +0000 (20:32 +0900)
Change-Id: I467d7b70210052c86da0f9d12c38753a25ce18e5

res/simple_debug.cpp

index 2de8f76..9831502 100644 (file)
@@ -80,7 +80,7 @@ SclLog::log(enum LOG_LEVEL level, char* fmt, ...) {
      * log current time
      */
     time_t now;
-    struct tm *timenow;
+    struct tm *timenow = NULL;
 
     time(&now);
     localtime_r(&now, timenow);