summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb_sudo.c
diff options
context:
space:
mode:
authorNick Guay <nguay@redhat.com>2012-07-18 11:55:35 -0400
committerJakub Hrozek <jhrozek@redhat.com>2012-07-18 20:07:45 +0200
commit8bbf89c5ab798c112773fe23515c3a9df56dde71 (patch)
treed25ac1f047e70fd01d4c636d9cc743ffeddaa0e9 /src/db/sysdb_sudo.c
parentcd52ba11971c5bbfd2fdfc114b0f1c66caa512bf (diff)
downloadsssd-8bbf89c5ab798c112773fe23515c3a9df56dde71.tar.gz
sssd-8bbf89c5ab798c112773fe23515c3a9df56dde71.tar.xz
sssd-8bbf89c5ab798c112773fe23515c3a9df56dde71.zip
Fix uninitialized values
https://fedorahosted.org/sssd/ticket/1379
Diffstat (limited to 'src/db/sysdb_sudo.c')
-rw-r--r--src/db/sysdb_sudo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/sysdb_sudo.c b/src/db/sysdb_sudo.c
index be7df6512..be101d8b3 100644
--- a/src/db/sysdb_sudo.c
+++ b/src/db/sysdb_sudo.c
@@ -294,7 +294,7 @@ sysdb_get_sudo_user_info(TALLOC_CTX *mem_ctx, const char *username,
struct ldb_message *msg;
char **sysdb_groupnames = NULL;
struct ldb_message_element *groups;
- uid_t uid;
+ uid_t uid = 0;
int i;
tmp_ctx = talloc_new(NULL);