From 921c713b40e77a6304c2d2a700388fb031401a0b Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Thu, 30 Jan 2014 11:24:47 +0100 Subject: [PATCH] options_wallpaper: Check retrun value of edje_object_file_set edje_object_file_set can fail. Better check for the return value and act accordingly. CID 1147527 --- src/bin/options_wallpaper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/options_wallpaper.c b/src/bin/options_wallpaper.c index 7dc6f9f0..1ed9a46c 100644 --- a/src/bin/options_wallpaper.c +++ b/src/bin/options_wallpaper.c @@ -132,7 +132,7 @@ _grid_content_get(void *data, Evas_Object *obj, const char *part) config->theme); o = elm_layout_add(obj); oe = elm_layout_edje_get(o); - edje_object_file_set(oe, path, "terminology/background"); + if (!edje_object_file_set(oe, path, "terminology/background")) return NULL; evas_object_show(o); return o; }