summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2012-04-13 10:47:24 +0000
committerChunEon Park <hermet@hermet.pe.kr>2012-04-13 10:47:24 +0000
commit7f56b0694a6077b70fc732a964a7d02a71c160af (patch)
treecdda9e24b7f526bf5dd174e34b2ac3ac18d27401 /src/lib
parent1f2a2e3c4fad543a9573007446473ed7d62de73b (diff)
elementary/datetime - +null check
SVN revision: 70169
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elm_datetime.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elm_datetime.c b/src/lib/elm_datetime.c
index f43eec1d8..caecb9a78 100644
--- a/src/lib/elm_datetime.c
+++ b/src/lib/elm_datetime.c
@@ -712,6 +712,7 @@ _reload_format(Evas_Object *obj)
712#endif 712#endif
713 713
714 dt_fmt = (char *)malloc(MAX_FORMAT_LEN); 714 dt_fmt = (char *)malloc(MAX_FORMAT_LEN);
715 if (!dt_fmt) return;
715 strncpy(dt_fmt, wd->format, MAX_FORMAT_LEN); 716 strncpy(dt_fmt, wd->format, MAX_FORMAT_LEN);
716 717
717 _expand_format(dt_fmt); 718 _expand_format(dt_fmt);