From 906a007c3a7da564959c599681fdc75681c5e99c Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Tue, 30 Jan 2024 14:50:26 -0800 Subject: [PATCH] Fix use of uninitialized memory --- ConflictSet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ConflictSet.cpp b/ConflictSet.cpp index c1e1f19..3f66d0f 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -35,7 +35,7 @@ enum class Type : int8_t { struct Node { /* begin section that's copied to the next node */ Node *parent = nullptr; - int64_t maxVersion; + int64_t maxVersion = std::numeric_limits::lowest(); Entry entry; int16_t numChildren = 0; bool entryPresent = false;