Corrected missing NULL initializer for device substrate name, which

can result in a segfault when reloading a techfile.
This commit is contained in:
Tim Edwards 2019-10-16 11:38:31 -04:00
parent 0386752abb
commit 745afa900d
1 changed files with 2 additions and 0 deletions

View File

@ -2226,6 +2226,8 @@ ExtTechLine(sectionName, argc, argv)
if (subsName != NULL)
devptr->exts_deviceSubstrateName =
StrDup((char **) NULL, subsName);
else
devptr->exts_deviceSubstrateName = (char *)NULL;
devptr->exts_deviceSubstrateTypes = subsTypes;
devptr->exts_deviceIdentifierTypes = idTypes;
devptr->exts_deviceParams = (ParamList *) NULL;