X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Ftypes%2Freturn_exp.c;h=d66c55cca751b2ee007dd076fab2b0b040087329;hb=35060621f2fd5079502543d17942127c1a602f72;hp=78e1aa56e96e5ea0f990fa80d0ce391cd8c844af;hpb=2fa436074ca9a5e87f39b696de832fa2188fcfc6;p=m6w6%2Fext-psi diff --git a/src/types/return_exp.c b/src/types/return_exp.c index 78e1aa5..d66c55c 100644 --- a/src/types/return_exp.c +++ b/src/types/return_exp.c @@ -30,7 +30,7 @@ struct psi_return_exp *psi_return_exp_init(struct psi_decl_var *func, struct psi_plist *args, struct psi_set_exp *set) { - struct psi_return_exp *exp = calloc(1, sizeof(*exp)); + struct psi_return_exp *exp = pecalloc(1, sizeof(*exp), 1); exp->func = func; exp->args = args; @@ -106,7 +106,7 @@ static inline bool psi_return_exp_validate_decl_args(struct psi_data *data, if (exp->args) { if (psi_plist_count(exp->args) != psi_plist_count(impl->decl->args)) { data->error(data, exp->token, PSI_WARNING, - "Argument count of return statement of implementation '%s'" + "Argument count of return statement of implementation '%s' " "does not match argument count of declaration '%s'", impl->func->name->val, impl->decl->func->var->name->val); return false;