From: WooHyun Jung Date: Tue, 20 Sep 2016 04:45:25 +0000 (+0900) Subject: tizen_vector: add null checking before strstr X-Git-Tag: accepted/tizen/common/20160921.162901~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F20%2F88620%2F1;p=platform%2Fupstream%2Felementary.git tizen_vector: add null checking before strstr Change-Id: Ifebb28259634d0f3e2b804ecf81adb2b90fb6884 --- diff --git a/src/lib/tizen_vector.c b/src/lib/tizen_vector.c index 060e565..829e702 100644 --- a/src/lib/tizen_vector.c +++ b/src/lib/tizen_vector.c @@ -1496,7 +1496,7 @@ tizen_vg_button_default_set(Elm_Button *obj) // When the button has no background and has circle shape, // the vector_ux will be "no_bg/circle". const char *str = elm_layout_data_get(obj, "vector_ux"); - if (strstr(str, "circle")) + if (str && strstr(str, "circle")) vd->is_circle = EINA_TRUE; else {