Skip to content

Commit d6a6f69

Browse files
authored
pathmatch.cpp: fixed reference to invalid container entry - detected by Coverity (#7738)
1 parent bd62c8c commit d6a6f69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/pathmatch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ bool PathMatch::match(const std::string &pattern, const std::string &path, const
113113

114114
/* No match, try to backtrack */
115115
if (!b.empty()) {
116-
const auto &bp = b.top();
116+
const auto bp = b.top();
117117
b.pop();
118118
s.setpos(bp.first);
119119
t.setpos(bp.second);

0 commit comments

Comments
 (0)