prevent crash if function is called with NULL argument
This commit is contained in:
parent
1ba02f3c87
commit
c50dfa2be8
|
|
@ -319,6 +319,8 @@ gettok(char **s)
|
|||
char *
|
||||
nexttok(const char *s)
|
||||
{
|
||||
if (!s)
|
||||
return NULL;
|
||||
int paren = 0;
|
||||
|
||||
s = skip_ws(s);
|
||||
|
|
|
|||
Loading…
Reference in New Issue