mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 13:57:32 +02:00
frontend/define.c, ntharg(), avoid segfault when out of `args'
return NULL instead
This commit is contained in:
@@ -420,6 +420,8 @@ ntharg(int num, struct pnode *args)
|
||||
else
|
||||
return (NULL);
|
||||
}
|
||||
if (!ptry)
|
||||
return NULL;
|
||||
ptry = ptry->pn_right;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user