Skip to content

Commit

Permalink
fix lookup in get_cache_entry()
Browse files Browse the repository at this point in the history
  • Loading branch information
flueke committed Dec 19, 2024
1 parent d6612f8 commit 31f9169
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mesytec-mvlc/util/data_filter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ std::optional<CacheEntry> get_cache_entry(const FilterWithCaches &filters, char
{
assert(filters.markers.size() == filters.caches.size());

if (!std::isalpha(marker))
return std::nullopt;

marker = std::tolower(marker);

auto it = std::find(std::begin(filters.markers), std::end(filters.markers), marker);

if (it == std::end(filters.markers))
Expand Down

0 comments on commit 31f9169

Please sign in to comment.