smbd: initialize end to NULL in unix_convert()
authorRalph Boehme <slow@samba.org>
Wed, 25 Mar 2020 06:46:22 +0000 (07:46 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 27 Mar 2020 01:06:30 +0000 (01:06 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/filename.c

index 44ed4e44103e4293a4fa2217d7835de721994281..b0ae6f64e8e54a464ad540aa5f1af01393445c79 100644 (file)
@@ -438,7 +438,7 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx,
 {
        struct smb_filename *smb_fname = NULL;
        char *start = NULL;
-       char *end;
+       char *end = NULL;
        char *dirpath = NULL;
        char *stream = NULL;
        bool component_was_mangled = False;