frontend/define.c, ntharg(), avoid segfault when out of `args'
return NULL instead
This commit is contained in:
parent
b137930330
commit
600d289000
|
|
@ -420,6 +420,8 @@ ntharg(int num, struct pnode *args)
|
|||
else
|
||||
return (NULL);
|
||||
}
|
||||
if (!ptry)
|
||||
return NULL;
|
||||
ptry = ptry->pn_right;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue