summaryrefslogtreecommitdiff
path: root/src/sysusers
diff options
context:
space:
mode:
authorPhilippe De Swert <philippedeswert@gmail.com>2014-09-18 18:56:57 +0300
committerTom Gundersen <teg@jklm.no>2014-09-18 18:32:18 +0200
commit56d21cdebce3ecd3b06189cb2184a84ba909619f (patch)
tree177055a39406ac71ba58383bd67294be4814f7c1 /src/sysusers
parent96f2f3b1b5f44eb59d23d2abeac12b33a18e1e21 (diff)
sysusers: Remove some gcc warnings about uninitialized variables
Gcc is spewing some warnings about uninitialized variables. Let's get rid of the noise.
Diffstat (limited to 'src/sysusers')
-rw-r--r--src/sysusers/sysusers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sysusers/sysusers.c b/src/sysusers/sysusers.c
index ba20d949dc..4203b3e017 100644
--- a/src/sysusers/sysusers.c
+++ b/src/sysusers/sysusers.c
@@ -796,8 +796,8 @@ static int root_stat(const char *p, struct stat *st) {
static int read_id_from_file(Item *i, uid_t *_uid, gid_t *_gid) {
struct stat st;
bool found_uid = false, found_gid = false;
- uid_t uid;
- gid_t gid;
+ uid_t uid = 0;
+ gid_t gid = 0;
assert(i);