summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-24 16:07:04 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-24 16:07:04 +0300
commitdeb643a6371a403f71e16c6b9011038ca99eb74a (patch)
tree6913538f41b8464ea8975f7d130bd5a6b3db39b2
parent8520c503041946148e499faf6a6b65b2afc670bf (diff)
downloadmplint-deb643a6371a403f71e16c6b9011038ca99eb74a.tar.gz
mplint-deb643a6371a403f71e16c6b9011038ca99eb74a.tar.bz2
mplint-deb643a6371a403f71e16c6b9011038ca99eb74a.tar.xz
mplint-deb643a6371a403f71e16c6b9011038ca99eb74a.zip
Remove realpath usage.
-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)