frontend/define.c, ntharg(), avoid segfault when out of `args'

return NULL instead
This commit is contained in:
rlar 2015-10-04 19:22:23 +02:00
parent b137930330
commit 600d289000
1 changed files with 2 additions and 0 deletions

View File

@ -420,6 +420,8 @@ ntharg(int num, struct pnode *args)
else
return (NULL);
}
if (!ptry)
return NULL;
ptry = ptry->pn_right;
}