|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From 56d21cdebce3ecd3b06189cb2184a84ba909619f Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From: Philippe De Swert <philippedeswert@gmail.com>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Date: Thu, 18 Sep 2014 18:56:57 +0300
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Subject: [PATCH] sysusers: Remove some gcc warnings about uninitialized
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
variables
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Gcc is spewing some warnings about uninitialized variables.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Let's get rid of the noise.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
src/sysusers/sysusers.c | 4 ++--
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/src/sysusers/sysusers.c b/src/sysusers/sysusers.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index ba20d949dc..4203b3e017 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/src/sysusers/sysusers.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/src/sysusers/sysusers.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -796,8 +796,8 @@ static int root_stat(const char *p, struct stat *st) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
static int read_id_from_file(Item *i, uid_t *_uid, gid_t *_gid) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
struct stat st;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
bool found_uid = false, found_gid = false;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- uid_t uid;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- gid_t gid;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ uid_t uid = 0;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ gid_t gid = 0;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
assert(i);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|