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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy