frontend/define.c, ntharg(), #11/15 `args' can't be NULL here

This commit is contained in:
rlar 2015-10-04 19:49:48 +02:00
parent cd0941367a
commit bd40bbd437
1 changed files with 2 additions and 2 deletions

View File

@ -412,11 +412,11 @@ ntharg(int num, struct pnode *args)
if (!args)
return NULL;
if (--num <= 0) {
if (args && args->pn_op && (args->pn_op->op_num == PT_OP_COMMA))
if (args->pn_op && (args->pn_op->op_num == PT_OP_COMMA))
return args->pn_left;
return args;
}
if (args && args->pn_op && (args->pn_op->op_num != PT_OP_COMMA)) {
if (args->pn_op && (args->pn_op->op_num != PT_OP_COMMA)) {
if (num <= 1)
return args;
return NULL;