Skip to content

Commit 5929277

Browse files
defanatorzimmerle
authored andcommitted
Avoid using NULL string (match) in Pm::evaluate
Closes #2178.
1 parent beedddd commit 5929277

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/operators/pm.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ bool Pm::evaluate(Transaction *transaction, Rule *rule,
103103
transaction->m_matched.push_back(match_);
104104
}
105105

106-
if (rule && rule->m_containsCaptureAction && transaction && rc) {
106+
if (rule && rule->m_containsCaptureAction && transaction && rc >= 0) {
107107
transaction->m_collections.m_tx_collection->storeOrUpdateFirst("0",
108108
std::string(match));
109109
ms_dbg_a(transaction, 7, "Added pm match TX.0: " + \

0 commit comments

Comments
 (0)