declaration and initialization in one step avoids c99ism
authorHans Breuer <hans@breuer.org>
Mon, 16 Jun 2008 20:34:42 +0000 (20:34 +0000)
committerHans Breuer <hans@src.gnome.org>
Mon, 16 Jun 2008 20:34:42 +0000 (20:34 +0000)
2008-05-19  Hans Breuer  <hans@breuer.org>

* glocalfileenumerator.c(_g_local_file_enumerator_new) : declaration
and initialization in one step avoids c99ism

svn path=/trunk/; revision=7052

gio/ChangeLog
gio/glocalfileenumerator.c

index 9b212df..2f5cf1b 100644 (file)
@@ -1,3 +1,8 @@
+2008-05-19  Hans Breuer  <hans@breuer.org>
+
+       * glocalfileenumerator.c(_g_local_file_enumerator_new) : declaration 
+       and initialization in one step avoids c99ism
+
 2008-06-16  Christian Persch  <chpe@gnome.org>
 
        * gio/gappinfo.c
index 5afdc10..57268a5 100644 (file)
@@ -194,9 +194,7 @@ _g_local_file_enumerator_new (GLocalFile *file,
                              GError              **error)
 {
   GLocalFileEnumerator *local;
-  char *filename;
-
-  filename = g_file_get_path (G_FILE (file));
+  char *filename = g_file_get_path (G_FILE (file));
 
 #ifdef USE_GDIR
   GError *dir_error;