Skip to content

Commit 1bc7588

Browse files
committed
Initialize extra field in PgHdr1 to fix an msan complaint.
1 parent f711021 commit 1bc7588

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pcache1.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ static PgHdr1 *pcache1AllocPage(PCache1 *pCache, int benignMalloc){
461461
p->page.pExtra = &p[1];
462462
p->isBulkLocal = 0;
463463
p->isAnchor = 0;
464+
p->pLruPrev = 0; /* Initializing this saves a valgrind error */
464465
}
465466
(*pCache->pnPurgeable)++;
466467
return p;

0 commit comments

Comments
 (0)