mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-09-04 03:03:32 +02:00
prevent crash if function is called with NULL argument
This commit is contained in:
@@ -319,6 +319,8 @@ gettok(char **s)
|
||||
char *
|
||||
nexttok(const char *s)
|
||||
{
|
||||
if (!s)
|
||||
return NULL;
|
||||
int paren = 0;
|
||||
|
||||
s = skip_ws(s);
|
||||
|
||||
Reference in New Issue
Block a user