smbd: Fix CID 1343333 Uninitialized variables
[obnox/samba/samba-obnox.git] / source3 / smbd / smb2_query_directory.c
index 73f2d6349712d2135359ab084d50ea7331930567..56dab691064d62ea8bf06f7007ab88aae673e201 100644 (file)
@@ -225,7 +225,7 @@ static struct tevent_req *smbd_smb2_query_directory_send(TALLOC_CTX *mem_ctx,
        uint32_t dirtype = FILE_ATTRIBUTE_HIDDEN | FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_DIRECTORY;
        bool dont_descend = false;
        bool ask_sharemode = true;
-       bool wcard_has_wild;
+       bool wcard_has_wild = false;
        struct tm tm;
        char *p;