From b0dd45620f1ffdd8814069df091b20e8780e1b3e Mon Sep 17 00:00:00 2001 From: Clifford Yapp <238416+starseeker@users.noreply.github.com> Date: Tue, 15 Dec 2020 21:06:26 +0000 Subject: [PATCH] Update to latest stepcode svn:revision:77973 svn:branch:extbuild svn:account:starseeker --- .../ext/stepcode/src/clstepcore/complexSupport.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/other/ext/stepcode/src/clstepcore/complexSupport.h b/src/other/ext/stepcode/src/clstepcore/complexSupport.h index 00490df2318..860bac36e3a 100644 --- a/src/other/ext/stepcode/src/clstepcore/complexSupport.h +++ b/src/other/ext/stepcode/src/clstepcore/complexSupport.h @@ -193,22 +193,22 @@ class SC_CORE_EXPORT EntList EntList *firstNot(JoinType); EntList *nextNot(JoinType j) { - return next->firstNot(j); + return (next) ? next->firstNot(j) : NULL; } EntList *firstWanted(MatchType); EntList *nextWanted(MatchType mat) { - return next->firstWanted(mat); + return (next) ? next->firstWanted(mat) : NULL; } EntList *lastNot(JoinType); EntList *prevNot(JoinType j) { - return prev->lastNot(j); + return (prev) ? prev->lastNot(j) : NULL; } EntList *lastWanted(MatchType); EntList *prevWanted(MatchType mat) { - return prev->lastWanted(mat); + return (prev) ? prev->lastWanted(mat) : NULL; } JoinType join; @@ -216,7 +216,8 @@ class SC_CORE_EXPORT EntList { return (join != SIMPLE); } - EntList *next, *prev; + EntList *next = NULL; + EntList *prev = NULL; protected: MatchType viable;