From ea86f4e100b547c8facc5f27ac025de6b60eea94 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 3 Jan 2013 16:06:40 -0800 Subject: [PATCH] Initialize stack variables. Prelude to factoring out calls to check_user_share_access(). Signed-off-by: Jeremy Allison Reviewed-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source3/smbd/uid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c index f551e50eda4..98020561acf 100644 --- a/source3/smbd/uid.c +++ b/source3/smbd/uid.c @@ -147,8 +147,8 @@ static bool check_user_ok(connection_struct *conn, int snum) { unsigned int i; - bool readonly_share; - bool admin_user; + bool readonly_share = false; + bool admin_user = false; struct vuid_cache_entry *ent = NULL; uint32_t share_access = 0; -- 2.11.4.GIT