summaryrefslogtreecommitdiff
path: root/foreign_avcall.c
diff options
context:
space:
mode:
Diffstat (limited to 'foreign_avcall.c')
-rw-r--r--foreign_avcall.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/foreign_avcall.c b/foreign_avcall.c
index 69146bb..1f0ac8d 100644
--- a/foreign_avcall.c
+++ b/foreign_avcall.c
@@ -261,7 +261,8 @@ static Status arg_list_add(av_alist *arg_list, Value val, Type *type, Location w
break;
case BUILTIN_VARARGS:
arr_foreach(val.varargs, VarArg, arg) {
- arg_list_add(arg_list, arg->val, arg->type, where);
+ if (!arg_list_add(arg_list, arg->val, arg->type, where))
+ return false;
}
break;
case BUILTIN_VOID: