[glib] Fix build with statvfs
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Fix build with statvfs
- Date: Sun, 28 Jul 2013 21:06:28 +0000 (UTC)
commit 5843582604c9b1b0d459dc7f15182c966d112d9e
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jul 28 17:04:56 2013 -0400
Fix build with statvfs
As pointed out in bug 704587, the maze of ifdefs was missing the
variable declaration for statfs_result in one case.
https://bugzilla.gnome.org/show_bug.cgi?id=704587
gio/glocalfile.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/glocalfile.c b/gio/glocalfile.c
index a4196dc..67e8313 100644
--- a/gio/glocalfile.c
+++ b/gio/glocalfile.c
@@ -2440,6 +2440,7 @@ is_remote_fs (const gchar *filename)
#elif defined(USE_STATVFS)
struct statvfs statfs_buffer;
+ int statfs_result = 0;
statfs_result = statvfs (filename, &statfs_buffer);
#else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]