Skip to content

Commit 68a07f7

Browse files
crayy8claude
andcommitted
Initialize _header and _numValues members to safe defaults
Consistent with prior member initialization fixes across the library. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d3f1e3a commit 68a07f7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

rejistry++/src/HBIN.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ namespace Rejistry {
126126
HBIN(const HBIN &);
127127
HBIN& operator=(const HBIN &);
128128

129-
const REGFHeader * _header;
129+
const REGFHeader * _header = NULL;
130130
};
131131
};
132132

rejistry++/src/ValueListRecord.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ namespace Rejistry {
7070
private:
7171
static const uint16_t VALUE_LIST_OFFSET = 0x00;
7272

73-
uint32_t _numValues;
73+
uint32_t _numValues = 0;
7474

7575
protected:
7676
ValueListRecord() {};

0 commit comments

Comments
 (0)