From b5de72fe13b3f2246963ebd7fa48c6a2bc8fb68c Mon Sep 17 00:00:00 2001 From: Frank Morgner Date: Thu, 17 Sep 2015 20:32:32 +0200 Subject: [PATCH] fix potention NULL deref --- src/scconf/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);