Corrected an error not checking for running off the end of a list,

in code from a recent commit.
This commit is contained in:
Tim Edwards 2021-06-18 21:23:21 -04:00
parent 6a555ad6ed
commit c4f03eabaf
1 changed files with 1 additions and 1 deletions

View File

@ -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;