mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
Initialize variables to placate compiler.
Since commit 012460ee93, some compilers have been warning that a
couple of variables may be used uninitialized. There doesn't
appear to be any actual risk, so let's just initialize these
variables to 0 to silence the compiler warnings.
Discussion: https://postgr.es/m/20240317192927.GA3978212%40nathanxps13
This commit is contained in:
@@ -606,7 +606,7 @@ AlterStatistics(AlterStatsStmt *stmt)
|
||||
bool repl_null[Natts_pg_statistic_ext];
|
||||
bool repl_repl[Natts_pg_statistic_ext];
|
||||
ObjectAddress address;
|
||||
int newtarget;
|
||||
int newtarget = 0;
|
||||
bool newtarget_default;
|
||||
|
||||
/* -1 was used in previous versions for the default setting */
|
||||
|
||||
Reference in New Issue
Block a user