mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
Corrected missing NULL initializer for device substrate name, which
can result in a segfault when reloading a techfile.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user