Corrected missing NULL initializer for device substrate name, which
can result in a segfault when reloading a techfile.
This commit is contained in:
parent
0386752abb
commit
745afa900d
|
|
@ -2226,6 +2226,8 @@ ExtTechLine(sectionName, argc, argv)
|
||||||
if (subsName != NULL)
|
if (subsName != NULL)
|
||||||
devptr->exts_deviceSubstrateName =
|
devptr->exts_deviceSubstrateName =
|
||||||
StrDup((char **) NULL, subsName);
|
StrDup((char **) NULL, subsName);
|
||||||
|
else
|
||||||
|
devptr->exts_deviceSubstrateName = (char *)NULL;
|
||||||
devptr->exts_deviceSubstrateTypes = subsTypes;
|
devptr->exts_deviceSubstrateTypes = subsTypes;
|
||||||
devptr->exts_deviceIdentifierTypes = idTypes;
|
devptr->exts_deviceIdentifierTypes = idTypes;
|
||||||
devptr->exts_deviceParams = (ParamList *) NULL;
|
devptr->exts_deviceParams = (ParamList *) NULL;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue