summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-12-07 14:00:26 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-12-07 14:00:26 +0000
commit3f4cc9b6c836ea48f966aad5c9aac12e31dc9f80 (patch)
tree2180c0fc8bee9eddc65f8fb11ecaea205e470778 /gtk
parent1d2e767a91d97c6a0785c4a1c077f0a77d77519f (diff)
downloadgtk+-3f4cc9b6c836ea48f966aad5c9aac12e31dc9f80.tar.gz
Fix a C99ism, spotted by Crispin Flowerday.
2005-12-07 Matthias Clasen <mclasen@redhat.com> * gtk/gtkfilesystemunix.c (cb_fill_in_mime_type): Fix a C99ism, spotted by Crispin Flowerday.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkfilesystemunix.c5
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;
}