1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

smbd: Remove an unused variable

ReadDirName happily takes NULL for "sbuf"

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2022-09-06 09:29:18 +02:00 committed by Jeremy Allison
parent 04e127d952
commit 4a54e3f28f

View File

@ -1931,7 +1931,6 @@ NTSTATUS can_delete_directory_fsp(files_struct *fsp)
long dirpos = 0;
const char *dname = NULL;
char *talloced = NULL;
SMB_STRUCT_STAT st;
struct connection_struct *conn = fsp->conn;
struct smb_Dir *dir_hnd = NULL;
@ -1941,7 +1940,7 @@ NTSTATUS can_delete_directory_fsp(files_struct *fsp)
return status;
}
while ((dname = ReadDirName(dir_hnd, &dirpos, &st, &talloced))) {
while ((dname = ReadDirName(dir_hnd, &dirpos, NULL, &talloced))) {
struct smb_filename *smb_dname_full = NULL;
struct smb_filename *direntry_fname = NULL;
char *fullname = NULL;