diff options
| author | Michael Paquier | 2021-06-29 02:54:11 +0000 |
|---|---|---|
| committer | Michael Paquier | 2021-06-29 02:57:18 +0000 |
| commit | 47f514dd9a0022a04d321b627b2e991cb85396e2 (patch) | |
| tree | 2dd282e7ccbed82a0f063bb9e3ed5b091925616e /src/backend/access/transam/xloginsert.c | |
| parent | 4035cd5d4eee4dae797bfc77ab07f8dcd8781b41 (diff) | |
Fix compilation warning in xloginsert.c
This is reproducible with gcc using at least -O0. The last checks
validating the compression of a block could not be reached with this
variable not set, but let's be clean.
Oversight in 4035cd5, per buildfarm member lapwing.
Diffstat (limited to 'src/backend/access/transam/xloginsert.c')
| -rw-r--r-- | src/backend/access/transam/xloginsert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/xloginsert.c b/src/backend/access/transam/xloginsert.c index 10b3b090535..3d2c9c3e8cf 100644 --- a/src/backend/access/transam/xloginsert.c +++ b/src/backend/access/transam/xloginsert.c @@ -863,7 +863,7 @@ XLogCompressBackupBlock(char *page, uint16 hole_offset, uint16 hole_length, char *dest, uint16 *dlen) { int32 orig_len = BLCKSZ - hole_length; - int32 len; + int32 len = -1; int32 extra_bytes = 0; char *source; PGAlignedBlock tmp; |
