Avoid a compilation warning

This commit is contained in:
Pierre Pronchery 2012-09-14 21:16:45 +00:00
parent 787fe8477c
commit f441810e09

View File

@ -1418,6 +1418,7 @@ static gboolean _done_thumbnails(gpointer data)
char * path;
GdkPixbuf * icon;
GError * error = NULL;
char const * p;
for(i = 0; i < IDLE_LOOP_ICON_CNT; i++)
{
@ -1428,8 +1429,9 @@ static gboolean _done_thumbnails(gpointer data)
{
/* lookup the real type of symbolic links */
free(type);
if((type = mime_type(browser->mime, path)) != NULL)
type = strdup(type);
type = NULL;
if((p = mime_type(browser->mime, path)) != NULL)
type = strdup(p);
}
if(type != NULL && path != NULL
&& strncmp(type, "image/", 6) == 0)