From 0b3e9bab80691528044fe39a30e696a8d05e49f8 Mon Sep 17 00:00:00 2001 From: Jaehyun Cho Date: Mon, 26 Sep 2016 19:32:29 +0900 Subject: [PATCH] tizen_vector: Check NULL pointer before calling strstr(). Change-Id: I7d5506804d951d26a401df8de89bc94a00adb6ec --- 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 829e702..a78fbd6 100644 --- a/src/lib/tizen_vector.c +++ b/src/lib/tizen_vector.c @@ -1373,7 +1373,7 @@ tizen_vg_button_no_bg_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