Content-Length: 256402 | pFad | http://github.com/postgrespro/postgres/commit/47f514dd9a0022a04d321b627b2e991cb85396e2

CE Fix compilation warning in xloginsert.c · postgrespro/postgres@47f514d · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/47f514dd9a0022a04d321b627b2e991cb85396e2

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy