diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-26 19:18:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-26 19:18:44 +0300 |
commit | a854f6b6aa81e7b387bce2293e9c84e0e96dfbd6 (patch) | |
tree | 16b6a47b8d94e117abf570ad0268a11ffb833cfd /src/fs/files.cpp | |
parent | cd94be3d8356e713cf5b72c64d22ec5baf5cae4a (diff) | |
download | mv-a854f6b6aa81e7b387bce2293e9c84e0e96dfbd6.tar.gz mv-a854f6b6aa81e7b387bce2293e9c84e0e96dfbd6.tar.bz2 mv-a854f6b6aa81e7b387bce2293e9c84e0e96dfbd6.tar.xz mv-a854f6b6aa81e7b387bce2293e9c84e0e96dfbd6.zip |
Fix code style.
Diffstat (limited to 'src/fs/files.cpp')
-rw-r--r-- | src/fs/files.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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); } } - |