Skip to content

Commit

Permalink
[CBRD-24772] A segfault occurs when using the connect by REGEXP_SUBST…
Browse files Browse the repository at this point in the history
…R statement (#4296) (#4308)

http://jira.cubrid.org/browse/CBRD-24772

This is a backport for 10.2 #4296
  • Loading branch information
beyondykk9 authored Apr 19, 2023
1 parent 36413b5 commit 1eda7be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/parser/xasl_generation.c
Original file line number Diff line number Diff line change
Expand Up @@ -22071,10 +22071,10 @@ pt_get_var_regu_variable_p_list (const REGU_VARIABLE * regu, bool is_prior, int

case TYPE_FUNC:
{
REGU_VARIABLE_LIST *r = &regu->value.funcp->operand;
while (*r)
REGU_VARIABLE_LIST r = regu->value.funcp->operand;
while (r)
{
list1 = pt_get_var_regu_variable_p_list (&(*r)->value, is_prior, err);
list1 = pt_get_var_regu_variable_p_list (&r->value, is_prior, err);

if (!list)
{
Expand All @@ -22090,7 +22090,7 @@ pt_get_var_regu_variable_p_list (const REGU_VARIABLE * regu, bool is_prior, int
list2->next = list1;
}

*r = (*r)->next;
r = r->next;
}
}
break;
Expand Down

0 comments on commit 1eda7be

Please sign in to comment.