tizen_vector: add null checking before strstr 20/88620/1
authorWooHyun Jung <wh0705.jung@samsung.com>
Tue, 20 Sep 2016 04:45:25 +0000 (13:45 +0900)
committerWooHyun Jung <wh0705.jung@samsung.com>
Tue, 20 Sep 2016 04:45:25 +0000 (13:45 +0900)
Change-Id: Ifebb28259634d0f3e2b804ecf81adb2b90fb6884

src/lib/tizen_vector.c

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