prevent crash if function is called with NULL argument

This commit is contained in:
Holger Vogt
2019-08-13 23:31:01 +02:00
parent 1ba02f3c87
commit c50dfa2be8
+2
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);