fix potention NULL deref

This commit is contained in:
Frank Morgner 2015-09-17 20:32:32 +02:00
parent 63a9ad79b6
commit b5de72fe13
1 changed files with 1 additions and 1 deletions

View File

@ -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);