mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Code cleanup in RE_Matcher code
- Use std::string in Specific_RE_Matcher instead of char* - Change a couple of ints-as-bools to bools
This commit is contained in:
parent
abf2da781d
commit
f67f6e4507
6 changed files with 23 additions and 43 deletions
|
@ -526,7 +526,7 @@ void RuleMatcher::BuildPatternSets(RuleHdrTest::pattern_set_list* dst, const str
|
|||
if ( group_exprs.length() > sig_max_group_size || i == exprs.length() )
|
||||
{
|
||||
RuleHdrTest::PatternSet* set = new RuleHdrTest::PatternSet;
|
||||
set->re = new Specific_RE_Matcher(MATCH_EXACTLY, 1);
|
||||
set->re = new Specific_RE_Matcher(MATCH_EXACTLY, true);
|
||||
set->re->CompileSet(group_exprs, group_ids);
|
||||
set->patterns = group_exprs;
|
||||
set->ids = group_ids;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue