fixed two possible NULL dereferences
This commit is contained in:
parent
346caccff0
commit
3b7a25ec52
@ -2425,7 +2425,7 @@ static int parseExpression(sprintfToken token, char * str,
|
||||
&token->u.cond.numIfTokens, &end, PARSER_IN_EXPR, errmsg))
|
||||
return 1;
|
||||
|
||||
if (!*end) {
|
||||
if (!end || !*end) {
|
||||
/*@-observertrans -readonlytrans@*/
|
||||
if (errmsg) *errmsg = _("} expected in expression");
|
||||
/*@=observertrans =readonlytrans@*/
|
||||
@ -2467,7 +2467,7 @@ static int parseExpression(sprintfToken token, char * str,
|
||||
&token->u.cond.numElseTokens, &end, PARSER_IN_EXPR,
|
||||
errmsg))
|
||||
return 1;
|
||||
if (!*end) {
|
||||
if (!end || !*end) {
|
||||
/*@-observertrans -readonlytrans@*/
|
||||
if (errmsg) *errmsg = _("} expected in expression");
|
||||
/*@=observertrans =readonlytrans@*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user