elementary: reduce risk of race condition.

SVN revision: 60128
This commit is contained in:
Cedric BAIL 2011-06-09 10:24:26 +00:00
parent 5b2f1b7956
commit 60a3b54405
1 changed files with 2 additions and 2 deletions

View 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;