Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 47f514d

Browse files
committed
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.
1 parent 4035cd5 commit 47f514d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/transam/xloginsert.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ XLogCompressBackupBlock(char *page, uint16 hole_offset, uint16 hole_length,
863863
char *dest, uint16 *dlen)
864864
{
865865
int32 orig_len = BLCKSZ - hole_length;
866-
int32 len;
866+
int32 len = -1;
867867
int32 extra_bytes = 0;
868868
char *source;
869869
PGAlignedBlock tmp;

0 commit comments

Comments
 (0)