Skip to content

Commit e245c12

Browse files
committed
Merge branch 'master' of github.com:okbob/plpgsql_check
2 parents 6fe5ab7 + d738dfc commit e245c12

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)