Skip to content

Commit

Permalink
Main: Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
meator committed Jun 2, 2024
1 parent 5c15114 commit bc62333
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ static void validate_search_path(stringlist_t &search_path) {
SPDLOG_WARN(
"Relative path '{}' found in $XDG_DATA_DIRS, ignoring...",
path);
search_path.erase(iter);
iter = search_path.erase(iter);
if (iter == search_path.end())
return;
}
if (!is_unique.emplace(path).second)
SPDLOG_WARN("$XDG_DATA_DIRS contains duplicate element '{}'!",
Expand Down

0 comments on commit bc62333

Please sign in to comment.