Skip to content

Commit e134999

Browse files
committed
pathmatch.cpp: fixed reference to invalid container entry - detected by Coverity
1 parent 6c11344 commit e134999

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
@@ -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)