summaryrefslogtreecommitdiff
path: root/src/lintmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lintmanager.cpp')
-rw-r--r--src/lintmanager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lintmanager.cpp b/src/lintmanager.cpp
index 8acb622..ec3c085 100644
--- a/src/lintmanager.cpp
+++ b/src/lintmanager.cpp
@@ -82,12 +82,12 @@ void LintManager::enumFiles(std::string path)
const std::string file = next_file->d_name;
if (file != "." && file != "..")
{
- char *realPath = realpath((path + file).c_str(), nullptr);
- stat(realPath, &s);
+ const std::string name = path + file;
+ stat(name.c_str(), &s);
if (S_ISDIR(s.st_mode))
- dirs.push_back(path + file);
+ dirs.push_back(name);
else
- processFile(realPath);
+ processFile(name);
}
}
if (dir)