diff options
author | Nathan Bossart <nathan@postgresql.org> | 2024-03-17 20:16:15 -0500 |
---|---|---|
committer | Nathan Bossart <nathan@postgresql.org> | 2024-03-17 20:16:15 -0500 |
commit | 949300402bde06699a23f216e26343e3503ba78b (patch) | |
tree | b85266b387e568130d8a0a9317c4e8f0adcb8538 /src/backend/commands/tablecmds.c | |
parent | d6607016c738a5ccdd9422f3c11778903a03cdbb (diff) | |
download | postgresql-949300402bde06699a23f216e26343e3503ba78b.tar.gz postgresql-949300402bde06699a23f216e26343e3503ba78b.zip |
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
Diffstat (limited to 'src/backend/commands/tablecmds.c')
-rw-r--r-- | src/backend/commands/tablecmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index ae6719329e7..3ed0618b4e6 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -8711,7 +8711,7 @@ ATExecDropExpression(Relation rel, const char *colName, bool missing_ok, LOCKMOD static ObjectAddress ATExecSetStatistics(Relation rel, const char *colName, int16 colNum, Node *newValue, LOCKMODE lockmode) { - int newtarget; + int newtarget = 0; bool newtarget_default; Relation attrelation; HeapTuple tuple, |