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:
parent
f71364bc2d
commit
9565c8f99a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user