projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
907a931
)
gunixmounts: remove warning on unused variable
author
Lionel Landwerlin
<llandwerlin@gmail.com>
Fri, 5 Apr 2013 14:21:23 +0000
(15:21 +0100)
committer
Lionel 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
patch
|
blob
|
history
diff --git
a/gio/gunixmounts.c
b/gio/gunixmounts.c
index
06d042e
..
03f1720
100644
(file)
--- a/
gio/gunixmounts.c
+++ b/
gio/gunixmounts.c
@@
-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