Corrected an error not checking for running off the end of a list,
in code from a recent commit.
This commit is contained in:
parent
6a555ad6ed
commit
c4f03eabaf
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue