diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lintmanager.cpp | 8 |
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) |