Fixed possibly uninitialized memory in lists [skip ci]

This commit is contained in:
Andrew Kane
2024-01-27 19:51:34 -08:00
parent 705e71015f
commit d0f13d4e7f

View File

@@ -473,7 +473,7 @@ CreateListPages(Relation index, VectorArray centers, int dimensions,
IvfflatList list;
listSize = MAXALIGN(IVFFLAT_LIST_SIZE(dimensions));
list = palloc(listSize);
list = palloc0(listSize);
buf = IvfflatNewBuffer(index, forkNum);
IvfflatInitRegisterPage(index, &buf, &page, &state);