diff options
Diffstat (limited to 'linker/linker_utils.cpp')
-rw-r--r-- | linker/linker_utils.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linker/linker_utils.cpp b/linker/linker_utils.cpp index e7447e402..05ac68716 100644 --- a/linker/linker_utils.cpp +++ b/linker/linker_utils.cpp @@ -164,6 +164,11 @@ void resolve_paths(std::vector<std::string>& paths, std::vector<std::string>* resolved_paths) { resolved_paths->clear(); for (const auto& path : paths) { + // skip empty paths + if (path.empty()) { + continue; + } + char resolved_path[PATH_MAX]; const char* original_path = path.c_str(); if (realpath(original_path, resolved_path) != nullptr) { |