gunixmounts: remove warning on unused variable
authorLionel Landwerlin <llandwerlin@gmail.com>
Fri, 5 Apr 2013 14:21:23 +0000 (15:21 +0100)
committerLionel Landwerlin <llandwerlin@gmail.com>
Wed, 10 Apr 2013 10:07:12 +0000 (11:07 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=697367

gio/gunixmounts.c

index 06d042e..03f1720 100644 (file)
@@ -2317,7 +2317,6 @@ _resolve_dev_root (void)
         {
           dev_t root_dev = statbuf.st_dev;
           FILE *f;
-          char buf[1024];
       
           /* see if device with similar major:minor as /dev/root is mention
            * in /etc/mtab (it usually is) 
@@ -2328,6 +2327,7 @@ _resolve_dev_root (void)
              struct mntent *entp;
 #ifdef HAVE_GETMNTENT_R        
               struct mntent ent;
+              char buf[1024];
               while ((entp = getmntent_r (f, &ent, buf, sizeof (buf))) != NULL) 
                 {
 #else