summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJehun Lim <jehun.lim@samsung.com>2015-10-13 06:49:12 (GMT)
committerJehun Lim <jehun.lim@samsung.com>2015-10-13 08:09:42 (GMT)
commitd5cf5880034ca7f53d90b617e3765bb5ab28d33b (patch)
treeb0d6552bae4b43d466fb6ac152cc8027624b2125
parenteacd1b81ce08ba5da0ff14b99bfbef42fec4fd56 (diff)
downloadair_mediahub-d5cf5880034ca7f53d90b617e3765bb5ab28d33b.zip
air_mediahub-d5cf5880034ca7f53d90b617e3765bb5ab28d33b.tar.gz
air_mediahub-d5cf5880034ca7f53d90b617e3765bb5ab28d33b.tar.bz2
Change-Id: I4c86b3ebe6da7f4d497fa5a04593b18a591b4f6b Signed-off-by: Jehun Lim <jehun.lim@samsung.com>
-rw-r--r--src/grid/grid_gallery.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/grid/grid_gallery.c b/src/grid/grid_gallery.c
index a421756..eb39a7b 100644
--- a/src/grid/grid_gallery.c
+++ b/src/grid/grid_gallery.c
@@ -134,9 +134,12 @@ static char *_place_text_get(void *data, Evas_Object *obj, const char *part)
city = strtok_r(buf, "/", &tmp);
country = strtok_r(tmp, "", &tmp);
- if (!strcmp(part, PART_ELM_TEXT_CITY))
+ if (!strcmp(part, PART_ELM_TEXT_CITY)) {
+ if (!city)
+ return NULL;
+
return strdup(city);
- else if (!strcmp(part, PART_ELM_TEXT_COUNTRY)) {
+ } else if (!strcmp(part, PART_ELM_TEXT_COUNTRY)) {
if (!country)
return NULL;