Added a NULL check at one point in the SPICE read routine that

prevents a segfault under some condition (not fully investigated)
involving .include files.  Appears to resolve the problem without
any unintended consequences.
This commit is contained in:
R. Timothy Edwards 2025-08-31 16:52:35 -04:00
parent 0bee21ccc8
commit e84700a607
2 changed files with 2 additions and 1 deletions

View File

@ -1 +1 @@
1.5.298
1.5.299

View File

@ -532,6 +532,7 @@ void ReadSpiceFile(char *fname, int filenum, struct cellstack **CellStackPtr,
SkipTok(NULL); /* get the next token */
if ((EndParseFile()) && (nexttok == NULL)) break;
if (nexttok == NULL) break;
if (nexttok[0] == '*') SkipNewLine(NULL);