From aadd4e4de6b3214a1d199af4ff28d949e2b83fb7 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Tue, 23 Jul 2013 18:38:57 -0500 Subject: [PATCH] ZCCParseNode needs to initialize TopNode - If the parsing is a complete failure, then TopNode won't ever be set to anything during the parsing process. --- src/zscript/zcc_parser.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zscript/zcc_parser.h b/src/zscript/zcc_parser.h index eaaba6192..8d3f9bab9 100644 --- a/src/zscript/zcc_parser.h +++ b/src/zscript/zcc_parser.h @@ -2,6 +2,7 @@ struct ZCCParseState { ZCCParseState(FScanner &scanner) : sc(scanner) { + TopNode = NULL; } FScanner ≻