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:
df45856
)
Squash some uninitialized variable compiler warnings
author
Colin Walters
<walters@verbum.org>
Tue, 26 Apr 2011 17:28:17 +0000
(13:28 -0400)
committer
Colin Walters
<walters@verbum.org>
Tue, 26 Apr 2011 17:29:05 +0000
(13:29 -0400)
From GCC 4.6.
gio/glocalfileinfo.c
patch
|
blob
|
history
diff --git
a/gio/glocalfileinfo.c
b/gio/glocalfileinfo.c
index
30ea97b
..
5e4def7
100644
(file)
--- 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} };