Skip to content

Commit ceb87bf

Browse files
authored
fixed reference to invalid container entry in PathMatch::match() - detected by Coverity (danmar#7725)
1 parent 4aa87ff commit ceb87bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pathmatch.cpp

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

127127
/* No match, try to backtrack */
128128
if (!b.empty()) {
129-
const auto &bp = b.top();
129+
const auto bp = b.top();
130130
b.pop();
131131
s.setpos(bp.first);
132132
t.setpos(bp.second);

0 commit comments

Comments
 (0)