Skip to content

Commit 61cc1fa

Browse files
committed
Set zero to null array in brin ao
1 parent eb0a42c commit 61cc1fa

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

contrib/pageinspect/brinfuncs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ brin_metapage_info(PG_FUNCTION_ARGS)
362362

363363
/* Extract values from the metapage */
364364
meta = (BrinMetaPageData *) PageGetContents(page);
365+
MemSet(nulls, 0, sizeof(nulls));
365366
values[0] = CStringGetTextDatum(psprintf("0x%08X", meta->brinMagic));
366367
values[1] = Int32GetDatum(meta->brinVersion);
367368
values[2] = Int32GetDatum(meta->pagesPerRange);

0 commit comments

Comments
 (0)