summaryrefslogtreecommitdiff
path: root/gio/glocalfileinfo.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2011-04-26 13:28:17 -0400
committerColin Walters <walters@verbum.org>2011-04-26 13:29:05 -0400
commit1056f2240c46081d8f55fe6f121ddee6a0370d96 (patch)
tree902a13ad497977ea0e21be9971ffd84ad4fff499 /gio/glocalfileinfo.c
parentdf45856bba14b93fedcb876fe04e0bbf0d159909 (diff)
downloadglib-1056f2240c46081d8f55fe6f121ddee6a0370d96.tar.gz
Squash some uninitialized variable compiler warnings
From GCC 4.6.
Diffstat (limited to 'gio/glocalfileinfo.c')
-rw-r--r--gio/glocalfileinfo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c
index 30ea97bab..5e4def74a 100644
--- a/gio/glocalfileinfo.c
+++ b/gio/glocalfileinfo.c
@@ -1883,7 +1883,7 @@ set_unix_mode (char *filename,
const GFileAttributeValue *value,
GError **error)
{
- guint32 val;
+ guint32 val = 0;
int res = 0;
if (!get_uint32 (value, &val, error))
@@ -1934,7 +1934,7 @@ set_unix_uid_gid (char *filename,
GError **error)
{
int res;
- guint32 val;
+ guint32 val = 0;
uid_t uid;
gid_t gid;
@@ -2070,8 +2070,8 @@ set_mtime_atime (char *filename,
GError **error)
{
int res;
- guint64 val;
- guint32 val_usec;
+ guint64 val = 0;
+ guint32 val_usec = 0;
struct stat statbuf;
gboolean got_stat = FALSE;
struct timeval times[2] = { {0, 0}, {0, 0} };