elementary: reduce risk of race condition.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 9 Jun 2011 10:24:26 +0000 (10:24 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 9 Jun 2011 10:24:26 +0000 (10:24 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@60128 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_icon.c

index 1c4c8a6..ef62875 100644 (file)
@@ -187,7 +187,7 @@ _icon_thumb_cleanup(Ethumb_Client *ethumbd)
 static void
 _icon_thumb_finish(Widget_Data *wd, Ethumb_Client *ethumbd)
 {
-   const char *file, *group;
+   const char *file = NULL, *group = NULL;
    Eina_Bool ret;
 
    _els_smart_icon_file_get(wd->img, &file, &group);
@@ -196,7 +196,7 @@ _icon_thumb_finish(Widget_Data *wd, Ethumb_Client *ethumbd)
 
    ret = _icon_thumb_display(wd);
 
-   if (!ret)
+   if (!ret && file)
      {
         const char *p;