Content-Length: 258243 | pFad | http://github.com/postgrespro/postgres/commit/4912385b56afe68ef76e47d38df1d61ada0fde2f

D9 Suppress uninitialized-variable warning in new checksum code. · postgrespro/postgres@4912385 · GitHub
Skip to content

Commit 4912385

Browse files
committed
Suppress uninitialized-variable warning in new checksum code.
Some compilers understand that this coding is safe, and some don't.
1 parent 82b945c commit 4912385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/storage/page/bufpage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ PageIsVerified(Page page, BlockNumber blkno)
8484
bool checksum_failure = false;
8585
bool header_sane = false;
8686
bool all_zeroes = false;
87-
uint16 checksum;
87+
uint16 checksum = 0;
8888

8989
/*
9090
* Don't verify page data unless the page passes basic non-zero test

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/4912385b56afe68ef76e47d38df1d61ada0fde2f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy