summaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-26 19:18:44 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-26 19:18:44 +0300
commita854f6b6aa81e7b387bce2293e9c84e0e96dfbd6 (patch)
tree16b6a47b8d94e117abf570ad0268a11ffb833cfd /src/fs
parentcd94be3d8356e713cf5b72c64d22ec5baf5cae4a (diff)
downloadmanaplus-a854f6b6aa81e7b387bce2293e9c84e0e96dfbd6.tar.gz
manaplus-a854f6b6aa81e7b387bce2293e9c84e0e96dfbd6.tar.bz2
manaplus-a854f6b6aa81e7b387bce2293e9c84e0e96dfbd6.tar.xz
manaplus-a854f6b6aa81e7b387bce2293e9c84e0e96dfbd6.zip
Fix code style.
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/files.cpp3
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);
}
}
-