mirror of
https://github.com/scandum/tintin
synced 2026-08-13 20:23:04 -04:00
fix dangling pointer
This commit is contained in:
parent
acc951e54a
commit
67dab322f9
1 changed files with 1 additions and 3 deletions
|
|
@ -212,12 +212,10 @@ pcre *regexp_compile(struct session *ses, char *exp, int comp_option)
|
|||
|
||||
int check_one_regexp(struct session *ses, struct listnode *node, char *line, char *original, int comp_option)
|
||||
{
|
||||
char *exp, *str;
|
||||
char *exp, *str, result[BUFFER_SIZE];
|
||||
|
||||
if (node->regex == NULL)
|
||||
{
|
||||
char result[BUFFER_SIZE];
|
||||
|
||||
substitute(ses, node->arg1, result, SUB_VAR|SUB_FUN);
|
||||
|
||||
exp = result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue