mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
Fix uninitialized variable in transformTableLikeClause()
process_notnull_constraints should be set to false until we discover a NOT NULL column. Discovered while running Valgrind. Discussion: https://postgr.es/m/CAApHDvoMyiZVi1KW5WVdqMRzWsWkD3F7n6QD+BbAO6WTeAWsUQ@mail.gmail.com
This commit is contained in:
parent
68a2a437f4
commit
4c8a1b4769
@ -1041,7 +1041,7 @@ transformTableLikeClause(CreateStmtContext *cxt, TableLikeClause *table_like_cla
|
||||
AclResult aclresult;
|
||||
char *comment;
|
||||
ParseCallbackState pcbstate;
|
||||
bool process_notnull_constraints;
|
||||
bool process_notnull_constraints = false;
|
||||
|
||||
setup_parser_errposition_callback(&pcbstate, cxt->pstate,
|
||||
table_like_clause->relation->location);
|
||||
|
Loading…
x
Reference in New Issue
Block a user