Skip to content

Commit

Permalink
[_391] Add missing return to set_log_level(...)
Browse files Browse the repository at this point in the history
This prevents a past the end iterator dereference.
  • Loading branch information
MartinFlores751 committed Dec 13, 2024
1 parent d332395 commit 5ec5f59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@ auto set_log_level(const json& _config) -> void

if (iter == std::end(_config)) {
spdlog::set_level(spdlog::level::info);
return;
}

const auto& lvl_string = iter->get_ref<const std::string&>();
Expand Down

0 comments on commit 5ec5f59

Please sign in to comment.