From: fennecdjay Date: Tue, 10 Nov 2020 23:20:16 +0000 (+0100) Subject: :art: Remove goto [fix] X-Git-Tag: nightly~1177 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=3ef2e866c11758531df5591612f032dfd88f9226;p=gwion.git :art: Remove goto [fix] --- diff --git a/src/parse/func_resolve_tmpl.c b/src/parse/func_resolve_tmpl.c index 88a0081a..a53d8b52 100644 --- a/src/parse/func_resolve_tmpl.c +++ b/src/parse/func_resolve_tmpl.c @@ -156,7 +156,7 @@ ANN Func find_template_match(const Env env, const Value value, const Exp_Call* e while(t && t->nspc) { Func_Def fdef = value->d.func_ref ? value->d.func_ref->def : value->type->info->func->def; const Value v = nspc_lookup_value0(t->nspc, fdef->base->xid); - if(!v) { + if(v) { const Func f = _find_template_match(env, v, exp); if(f) return f;