Initialize stack variables. Prelude to factoring out calls to check_user_share_access().
[kai/samba.git] / source3 / smbd / uid.c
index f551e50eda46b21cfa07be5aa81d310310f25415..98020561acfd110d7938f570e1788bfe5d1dca97 100644 (file)
@@ -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;