summaryrefslogtreecommitdiff
path: root/src/os_posix/os_dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os_posix/os_dir.c')
-rw-r--r--src/os_posix/os_dir.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/os_posix/os_dir.c b/src/os_posix/os_dir.c
index 8f77aba5f96..205ca389f43 100644
--- a/src/os_posix/os_dir.c
+++ b/src/os_posix/os_dir.c
@@ -28,11 +28,10 @@ __wt_posix_directory_list(WT_FILE_SYSTEM *file_system,
int tret;
char **entries;
- session = (WT_SESSION_IMPL *)wt_session;
-
*dirlistp = NULL;
*countp = 0;
+ session = (WT_SESSION_IMPL *)wt_session;
dirp = NULL;
dirallocsz = 0;
entries = NULL;