Browse Source

prevent crash if function is called with NULL argument

pre-master-46
Holger Vogt 7 years ago
parent
commit
c50dfa2be8
  1. 2
      src/misc/string.c

2
src/misc/string.c

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

Loading…
Cancel
Save