Fix undefined behavior where struct members are written to disk and restored later in a situation where they are unused but can contain random values that are not proper booleans, which ubsan complains about.

This commit is contained in:
Steve Atherton 2022-03-26 19:38:59 -07:00
parent aa8ab494a2
commit f09bdc840c
1 changed files with 2 additions and 2 deletions

View File

@ -1496,8 +1496,8 @@ public:
int64_t numEntries;
int dataBytesPerPage;
int pagesPerExtent;
bool usesExtents;
bool tailPageNewExtent;
bool usesExtents = false;
bool tailPageNewExtent = false;
LogicalPageID prevExtentEndPageID;
Cursor headReader;