Skip to content

Commit

Permalink
Coverity: Fix for CID-1523671 (#11877)
Browse files Browse the repository at this point in the history
  • Loading branch information
brbzull0 authored Nov 18, 2024
1 parent 32c2f8e commit 326673b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/esi/test/utils_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ TEST_CASE("esi utils test")
Utils::KeyValueMap kv;
Utils::HeaderValueList list;
Utils::parseKeyValueConfig(lines, kv, list);
REQUIRE(kv.find("a")->second == "b");
const auto b = kv.find("a");
REQUIRE((b != std::end(kv) && b->second == "b"));
REQUIRE(list.back() == "GRADE");
list.pop_back();
REQUIRE(list.back() == "AGE");
Expand Down

0 comments on commit 326673b

Please sign in to comment.