seoz pushed a commit to branch master.

http://git.enlightenment.org/tools/elm-theme-viewer.git/commit/?id=b47a250323dd171a7c6f699e4e321030f4f04e7f

commit b47a250323dd171a7c6f699e4e321030f4f04e7f
Author: Daniel Juyung Seo <[email protected]>
Date:   Fri Apr 25 15:10:59 2014 +0900

    widget: set the style to "default" if the style is NULL.
    
    This fixes coverity CID 1205012.
---
 src/bin/widget.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/bin/widget.c b/src/bin/widget.c
index be465ca..f770f84 100644
--- a/src/bin/widget.c
+++ b/src/bin/widget.c
@@ -2055,6 +2055,8 @@ widget_create(Evas_Object *parent, Widget_Type widget, 
const char *orig_style)
    if (orig_style)
      style = eina_stringshare_add(_style_split_2(orig_style));
    //INF("widget : %s, orig_style : %s, style : %s", widget, orig_style, 
style);
+   if (!style)
+     style = eina_stringshare_add("default");
 
 #define ADD_WIDGET(name__, id__, style__) \
    else if (widget == id__) \

-- 


Reply via email to