Remove unneeded initializations (we already talloc_zero).
authorJeremy Allison <jra@samba.org>
Tue, 9 Apr 2013 18:02:58 +0000 (11:02 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 19 Jun 2013 08:55:34 +0000 (10:55 +0200)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/modules/vfs_dirsort.c

index 9b772ccbe5842d298f49dba329bf96f2582b3826..698e96b309bf65c92fae8c117f203944f596a4fd 100644 (file)
@@ -128,9 +128,6 @@ static SMB_STRUCT_DIR *dirsort_opendir(vfs_handle_struct *handle,
                return NULL;
        }
 
-       data->directory_list = NULL;
-       data->pos = 0;
-
        status = create_synthetic_smb_fname(data,
                                        fname,
                                        NULL,
@@ -175,8 +172,6 @@ static SMB_STRUCT_DIR *dirsort_fdopendir(vfs_handle_struct *handle,
                return NULL;
        }
 
-       data->directory_list = NULL;
-       data->pos = 0;
        data->fsp = fsp;
 
        /* Open the underlying directory and count the number of entries */