cppcheck
This commit is contained in:
@@ -3398,13 +3398,13 @@ void trex_free(TRex *exp) {
|
||||
}
|
||||
|
||||
TRexBool trex_match(TRex *exp, const TRexChar *text) {
|
||||
const TRexChar *res = NULL;
|
||||
exp->_bol = text;
|
||||
exp->_eol = text + scstrlen(text);
|
||||
exp->_currsubexp = 0;
|
||||
res = trex_matchnode(exp, exp->_nodes, text, NULL);
|
||||
if (res == NULL || res != exp->_eol)
|
||||
const TRexChar *res = trex_matchnode(exp, exp->_nodes, text, NULL);
|
||||
if (res == NULL || res != exp->_eol) {
|
||||
return TRex_False;
|
||||
}
|
||||
return TRex_True;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user