From 583c740cc855551c8edd7a596ffaa6d5b94ed963 Mon Sep 17 00:00:00 2001 From: xatier Date: Mon, 19 Feb 2024 04:46:09 -0600 Subject: [PATCH] Initialize NodeInSpan struct members properly --- src/Engine/gramambular2/reading_grid.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Engine/gramambular2/reading_grid.h b/src/Engine/gramambular2/reading_grid.h index 450eb8d..94057a5 100644 --- a/src/Engine/gramambular2/reading_grid.h +++ b/src/Engine/gramambular2/reading_grid.h @@ -267,8 +267,8 @@ class ReadingGrid { Node::OverrideType overrideType); struct NodeInSpan { - NodePtr node; - size_t spanIndex; + NodePtr node = nullptr; + size_t spanIndex = 0; }; // Find all nodes that overlap with the location. The return value is a list