mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 14:42:10 +01:00
Squash some uninitialized variable compiler warnings
From GCC 4.6.
This commit is contained in:
parent
df45856bba
commit
1056f2240c
@ -1883,7 +1883,7 @@ set_unix_mode (char *filename,
|
|||||||
const GFileAttributeValue *value,
|
const GFileAttributeValue *value,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
guint32 val;
|
guint32 val = 0;
|
||||||
int res = 0;
|
int res = 0;
|
||||||
|
|
||||||
if (!get_uint32 (value, &val, error))
|
if (!get_uint32 (value, &val, error))
|
||||||
@ -1934,7 +1934,7 @@ set_unix_uid_gid (char *filename,
|
|||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
int res;
|
int res;
|
||||||
guint32 val;
|
guint32 val = 0;
|
||||||
uid_t uid;
|
uid_t uid;
|
||||||
gid_t gid;
|
gid_t gid;
|
||||||
|
|
||||||
@ -2070,8 +2070,8 @@ set_mtime_atime (char *filename,
|
|||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
int res;
|
int res;
|
||||||
guint64 val;
|
guint64 val = 0;
|
||||||
guint32 val_usec;
|
guint32 val_usec = 0;
|
||||||
struct stat statbuf;
|
struct stat statbuf;
|
||||||
gboolean got_stat = FALSE;
|
gboolean got_stat = FALSE;
|
||||||
struct timeval times[2] = { {0, 0}, {0, 0} };
|
struct timeval times[2] = { {0, 0}, {0, 0} };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user