tizen_vector: Check NULL pointer before calling strstr(). 89/89689/2 accepted/tizen/common/20160927.152723 accepted/tizen/ivi/20160927.231032 accepted/tizen/mobile/20160927.230903 accepted/tizen/tv/20160927.230936 accepted/tizen/wearable/20160927.231004 submit/tizen/20160927.065504 submit/tizen/20160927.065535
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 26 Sep 2016 10:32:29 +0000 (19:32 +0900)
committerHermet Park <chuneon.park@samsung.com>
Mon, 26 Sep 2016 10:38:59 +0000 (03:38 -0700)
Change-Id: I7d5506804d951d26a401df8de89bc94a00adb6ec

src/lib/tizen_vector.c

index 829e702..a78fbd6 100644 (file)
@@ -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
      {