From: Ralph Boehme Date: Thu, 7 May 2020 09:50:58 +0000 (+0200) Subject: smbd: remove unused variable twrp_name from filename_convert_internal() X-Git-Tag: ldb-2.2.0~445 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=60c47a5d13b1ce4b317f319ef4be42443fde50ee;p=thirdparty%2Fsamba.git smbd: remove unused variable twrp_name from filename_convert_internal() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index 0b243acf1c4..72fae4048d3 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -1912,7 +1912,6 @@ static NTSTATUS filename_convert_internal(TALLOC_CTX *ctx, struct smb_filename **_smb_fname) { struct smb_filename *smb_fname = NULL; - char *twrp_name = NULL; NTSTATUS status; *_smb_fname = NULL; @@ -1967,10 +1966,8 @@ static NTSTATUS filename_convert_internal(TALLOC_CTX *ctx, "for name %s with %s\n", name_in, nt_errstr(status) )); - TALLOC_FREE(twrp_name); return status; } - TALLOC_FREE(twrp_name); if ((ucf_flags & UCF_UNIX_NAME_LOOKUP) && VALID_STAT(smb_fname->st) &&