]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
torture3: Remove an unused variable
authorVolker Lendecke <vl@samba.org>
Tue, 6 Sep 2022 07:16:14 +0000 (09:16 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 7 Sep 2022 18:40:28 +0000 (18:40 +0000)
ReadDirName happily takes NULL for "sbuf"

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/torture/cmd_vfs.c

index 3be450b97bda7fcd2c14ec970a2c15ecf848e4db..0998e204641947d5a136dea6671ac94e7fe2009b 100644 (file)
@@ -2100,7 +2100,6 @@ static NTSTATUS cmd_translate_name(struct vfs_state *vfs, TALLOC_CTX *mem_ctx,
 {
        const char *dname = NULL;
        char *dname_talloced = NULL;
-       SMB_STRUCT_STAT st;
        bool found = false;
        char *translated = NULL;
        struct smb_filename *smb_fname = NULL;
@@ -2141,7 +2140,7 @@ static NTSTATUS cmd_translate_name(struct vfs_state *vfs, TALLOC_CTX *mem_ctx,
                /* ReadDirName() returns Windows "encoding" */
                dname = ReadDirName(vfs->currentdir,
                                    &vfs->currentdir_offset,
-                                   &st,
+                                   NULL,
                                    &dname_talloced);
                if (dname == NULL) {
                        break;