elementary: reduce risk of race condition.
authorCedric BAIL <cedric.bail@free.fr>
Thu, 9 Jun 2011 10:24:26 +0000 (10:24 +0000)
committerCedric BAIL <cedric.bail@free.fr>
Thu, 9 Jun 2011 10:24:26 +0000 (10:24 +0000)
SVN revision: 60128

legacy/elementary/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;