Skip to content

Commit d738dfc

Browse files
authored
Merge pull request #113 from rjuju/fix_items
Fix stack item allocation in push_stmt_to_stmt_stack.
2 parents 8327afb + 1fe3497 commit d738dfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stmtwalk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,7 @@ push_stmt_to_stmt_stack(PLpgSQL_checkstate *cstate)
14801480
PLpgSQL_stmt_stack_item *stmt_stack_item;
14811481
PLpgSQL_stmt_stack_item *current = cstate->top_stmt_stack;
14821482

1483-
stmt_stack_item = (PLpgSQL_stmt_stack_item *) palloc(sizeof(PLpgSQL_stmt_stack_item));
1483+
stmt_stack_item = (PLpgSQL_stmt_stack_item *) palloc0(sizeof(PLpgSQL_stmt_stack_item));
14841484
stmt_stack_item->stmt = stmt;
14851485

14861486
switch (PLPGSQL_STMT_TYPES stmt->cmd_type)

0 commit comments

Comments
 (0)