gettok_node(), avoid segfault when *s == NULL
This commit is contained in:
parent
23cdd5e53f
commit
493aaba468
|
|
@ -443,6 +443,9 @@ gettok_node(char **s)
|
|||
char *token ; /* return token */
|
||||
SPICE_DSTRING buf ; /* allow any length string */
|
||||
|
||||
if (*s == NULL)
|
||||
return NULL;
|
||||
|
||||
while (isspace(**s) ||
|
||||
( **s == '(' ) ||
|
||||
( **s == ')' ) ||
|
||||
|
|
|
|||
Loading…
Reference in New Issue