summaryrefslogtreecommitdiffstats
path: root/src/OSSupport
diff options
context:
space:
mode:
Diffstat (limited to 'src/OSSupport')
-rw-r--r--src/OSSupport/File.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OSSupport/File.cpp b/src/OSSupport/File.cpp
index 0511c6083..d99892aae 100644
--- a/src/OSSupport/File.cpp
+++ b/src/OSSupport/File.cpp
@@ -532,7 +532,6 @@ AStringVector cFile::GetFolderContents(const AString & a_Folder)
#else // _WIN32
DIR * dp;
- struct dirent *dirp;
AString Folder = a_Folder;
if (Folder.empty())
{
@@ -544,6 +543,7 @@ AStringVector cFile::GetFolderContents(const AString & a_Folder)
}
else
{
+ struct dirent *dirp;
while ((dirp = readdir(dp)) != nullptr)
{
AllFiles.push_back(dirp->d_name);