mirror of
https://github.com/RTimothyEdwards/netgen.git
synced 2026-08-29 01:14:24 +02:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user