Browse Source

gettok_node(), avoid segfault when *s == NULL

pre-master-46
Krzysztof Blaszkowski 13 years ago
committed by rlar
parent
commit
493aaba468
  1. 3
      src/misc/string.c

3
src/misc/string.c

@ -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…
Cancel
Save