diff --git a/src/scconf/parse.c b/src/scconf/parse.c index 2804d7d5..f0e585b0 100644 --- a/src/scconf/parse.c +++ b/src/scconf/parse.c @@ -270,7 +270,7 @@ void scconf_parse_token(scconf_parser * parser, int token_type, const char *toke scconf_parse_warning_expect(parser, ";"); scconf_parse_reset_state(parser); } - if (*token == '"') { + if (token && *token == '"') { /* quoted string, remove them */ token++; len = strlen(token);