summaryrefslogtreecommitdiff
path: root/source3/smbd/filename.c
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2020-05-07 11:50:58 +0200
committerRalph Boehme <slow@samba.org>2020-05-21 05:23:29 +0000
commit60c47a5d13b1ce4b317f319ef4be42443fde50ee (patch)
treef826e641b1e5abccd5586cae65ee0af1c96c3151 /source3/smbd/filename.c
parent0b31a9ce9a16de9158137cfc5f473917cd683875 (diff)
downloadsamba-60c47a5d13b1ce4b317f319ef4be42443fde50ee.tar.gz
smbd: remove unused variable twrp_name from filename_convert_internal()
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/filename.c')
-rw-r--r--source3/smbd/filename.c3
1 files changed, 0 insertions, 3 deletions
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) &&