From 67db0d10694e0c41172d64431b99f9536aef5d54 Mon Sep 17 00:00:00 2001 From: WooHyun Jung Date: Tue, 20 Sep 2016 13:45:25 +0900 Subject: [PATCH] tizen_vector: add null checking before strstr Change-Id: Ifebb28259634d0f3e2b804ecf81adb2b90fb6884 --- src/lib/tizen_vector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.7.4