diff options
Diffstat (limited to 'source3/smbd/dir.c')
-rw-r--r-- | source3/smbd/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index ff240b7e5a..4d41f88f35 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -957,8 +957,8 @@ const char *ReadDirName(void *p, long *poffset) if (dirp->hide_unreadable || dirp->hide_unwriteable || dirp->hide_special) { SMB_STRUCT_STAT st; - ZERO_STRUCT(st); char *entry = NULL; + ZERO_STRUCT(st); if (asprintf(&entry, "%s/%s/%s", conn->origpath, dirp->dir_path, n) == -1) { return NULL; |