multibuttonentry: Check return value of elm_layout_theme_set.
authorDaniel Juyung Seo <seojuyung2@gmail.com>
Mon, 23 Feb 2015 13:45:33 +0000 (22:45 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Mon, 23 Feb 2015 13:45:33 +0000 (22:45 +0900)
This fixes coverity CID 1086781.

legacy/elementary/src/lib/elc_multibuttonentry.c

index 51491db..3246066 100644 (file)
@@ -683,8 +683,9 @@ _item_new(Elm_Multibuttonentry_Data *sd,
    ELM_MULTIBUTTONENTRY_ITEM_DATA_GET(eo_item, item);
    VIEW(item) = elm_layout_add(obj);
 
-   elm_layout_theme_set
-      (VIEW(item), "multibuttonentry", "btn", elm_widget_style_get(obj));
+   if (!elm_layout_theme_set
+       (VIEW(item), "multibuttonentry", "btn", elm_widget_style_get(obj)))
+     CRI("Failed to set layout!");
 
    elm_object_part_text_set(VIEW(item), "elm.btn.text", str);