From a854f6b6aa81e7b387bce2293e9c84e0e96dfbd6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 26 May 2017 19:18:44 +0300 Subject: Fix code style. --- src/fs/files.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/fs') diff --git a/src/fs/files.cpp b/src/fs/files.cpp index 7cefef985..9d7bfd125 100644 --- a/src/fs/files.cpp +++ b/src/fs/files.cpp @@ -287,11 +287,11 @@ void Files::enumFiles(StringVect &files, { if (findLast(path, dirSeparator) == false) path += dirSeparator; - const struct dirent *next_file = nullptr; DIR *const dir = opendir(path.c_str()); if (dir) { + const struct dirent *next_file = nullptr; while ((next_file = readdir(dir))) { const std::string file = next_file->d_name; @@ -313,4 +313,3 @@ void Files::enumFiles(StringVect &files, closedir(dir); } } - -- cgit v1.2.3-60-g2f50