prevent crash if function is called with NULL argument

This commit is contained in:
Holger Vogt 2019-06-14 22:22:17 +02:00
parent 1ba02f3c87
commit c50dfa2be8
1 changed files with 2 additions and 0 deletions

View File

@ -319,6 +319,8 @@ gettok(char **s)
char *
nexttok(const char *s)
{
if (!s)
return NULL;
int paren = 0;
s = skip_ws(s);