diff options
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkfilesystemunix.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtkfilesystemunix.c b/gtk/gtkfilesystemunix.c index ccc541a3a2..5f078190dd 100644 --- a/gtk/gtkfilesystemunix.c +++ b/gtk/gtkfilesystemunix.c @@ -2154,15 +2154,16 @@ cb_fill_in_mime_type (gpointer key, gpointer value, gpointer user_data) GtkFileFolderUnix *folder_unix = user_data; char *fullname = g_build_filename (folder_unix->filename, basename, NULL); struct stat *statbuf = NULL; + const char *mime_type; if (folder_unix->have_stat) statbuf = &entry->statbuf; - const char *mime_type = xdg_mime_get_mime_type_for_file (fullname, statbuf); + mime_type = xdg_mime_get_mime_type_for_file (fullname, statbuf); entry->mime_type = g_strdup (mime_type); g_free (fullname); - /* FIXME: free on NULL? */ + return FALSE; } |