1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

smbd: leave start at NULL, it's not used before being set to smbfname->basename

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2020-03-25 07:45:43 +01:00 committed by Jeremy Allison
parent f71364bc2d
commit 9565c8f99a

View File

@ -437,14 +437,7 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx,
uint32_t ucf_flags)
{
struct smb_filename *smb_fname = NULL;
/*
* This looks strange. But we need "start" initialized to "" here but
* it can't be a const char *, so 'char *start = "";' does not work.
*/
char cnull = '\0';
char *start = &cnull;
char *start = NULL;
char *end;
char *dirpath = NULL;
char *stream = NULL;