aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-11-07 12:18:18 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2021-11-07 12:18:18 -0500
commitc3ec4f8fe867807613c08fe16789434ab1a74a15 (patch)
tree64f5e514c7055a7452954e91cd549d7bebe07b47 /src/backend/access/transam/xlog.c
parent568620dfd6912351b4127435eca5309f823abde8 (diff)
downloadpostgresql-c3ec4f8fe867807613c08fe16789434ab1a74a15.tar.gz
postgresql-c3ec4f8fe867807613c08fe16789434ab1a74a15.zip
Silence uninitialized-variable warning.
Quite a few buildfarm animals are warning about this, and lapwing is actually failing (because -Werror). It's a false positive AFAICS, so no need to do more than zero the variable to start with. Discussion: https://postgr.es/m/YYXJnUxgw9dZKxlX@paquier.xyz
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r--src/backend/access/transam/xlog.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 7b1b3e802bb..5cda30836f8 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -12109,6 +12109,9 @@ read_backup_label(XLogRecPtr *checkPointLoc, TimeLineID *backupLabelTLI,
uint32 hi,
lo;
+ /* suppress possible uninitialized-variable warnings */
+ *checkPointLoc = InvalidXLogRecPtr;
+ *backupLabelTLI = 0;
*backupEndRequired = false;
*backupFromStandby = false;