fix potention NULL deref
This commit is contained in:
parent
63a9ad79b6
commit
b5de72fe13
@ -270,7 +270,7 @@ void scconf_parse_token(scconf_parser * parser, int token_type, const char *toke
|
|||||||
scconf_parse_warning_expect(parser, ";");
|
scconf_parse_warning_expect(parser, ";");
|
||||||
scconf_parse_reset_state(parser);
|
scconf_parse_reset_state(parser);
|
||||||
}
|
}
|
||||||
if (*token == '"') {
|
if (token && *token == '"') {
|
||||||
/* quoted string, remove them */
|
/* quoted string, remove them */
|
||||||
token++;
|
token++;
|
||||||
len = strlen(token);
|
len = strlen(token);
|
||||||
|
Loading…
Reference in New Issue
Block a user