elementary/datetime - +null check
authorChunEon Park <hermet@hermet.pe.kr>
Fri, 13 Apr 2012 10:47:24 +0000 (10:47 +0000)
committerChunEon Park <hermet@hermet.pe.kr>
Fri, 13 Apr 2012 10:47:24 +0000 (10:47 +0000)
SVN revision: 70169

src/lib/elm_datetime.c

index f43eec1..caecb9a 100644 (file)
@@ -712,6 +712,7 @@ _reload_format(Evas_Object *obj)
 #endif
 
    dt_fmt = (char *)malloc(MAX_FORMAT_LEN);
+   if (!dt_fmt) return;
    strncpy(dt_fmt, wd->format, MAX_FORMAT_LEN);
 
    _expand_format(dt_fmt);