Skip to content

Commit

Permalink
config: avoid circular imports
Browse files Browse the repository at this point in the history
  • Loading branch information
PaideiaDilemma committed Mar 10, 2024
1 parent 1f15da3 commit 0a1c22f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ std::optional<std::string> CConfigManager::handleSource(const std::string& comma
for (size_t i = 0; i < glob_buf->gl_pathc; i++) {
const auto PATH = absolutePath(glob_buf->gl_pathv[i], CURRENTDIR);

if (PATH.empty()) {
if (PATH.empty() || PATH == configCurrentPath) {
Debug::log(WARN, "source= skipping invalid path");
continue;
}
Expand Down

0 comments on commit 0a1c22f

Please sign in to comment.