summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-01-03 16:06:40 -0800
committerAndrew Bartlett <abartlet@samba.org>2013-01-09 15:29:25 +1100
commitea86f4e100b547c8facc5f27ac025de6b60eea94 (patch)
treec3107ab075d11201731e741919287f2b0c672843
parent8475f206b296362fc2473bf6eb4b6d51834f8245 (diff)
downloadsamba-ea86f4e100b547c8facc5f27ac025de6b60eea94.tar.gz
samba-ea86f4e100b547c8facc5f27ac025de6b60eea94.tar.bz2
samba-ea86f4e100b547c8facc5f27ac025de6b60eea94.zip
Initialize stack variables. Prelude to factoring out calls to check_user_share_access().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source3/smbd/uid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c
index f551e50eda..98020561ac 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;