From c4f03eabaf86e8eb341154ba4bc11c1d79eaacdd Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Fri, 18 Jun 2021 21:23:21 -0400 Subject: [PATCH] Corrected an error not checking for running off the end of a list, in code from a recent commit. --- base/flatten.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/flatten.c b/base/flatten.c index 58b3d78..4bf3fb6 100644 --- a/base/flatten.c +++ b/base/flatten.c @@ -536,7 +536,7 @@ int flattenInstancesOf(char *name, int fnum, char *instance) */ CurrentProp = CurrentProp->next; - if (CurrentProp->type != PROPERTY) break; + if ((CurrentProp == NULL) || (CurrentProp->type != PROPERTY)) break; } else break;