From 955e3ee2588912a00e78ad89fb27decc4eb420f1 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 7 Jan 2013 13:52:48 +0900 Subject: [PATCH] Initialize the type to be ev_func. This fixes the returning of the wrong function symbol when resolving overloaded functions and one of the functions takes no parameters. --- tools/qfcc/source/function.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/qfcc/source/function.c b/tools/qfcc/source/function.c index bf94a5562..b8c4b3b75 100644 --- a/tools/qfcc/source/function.c +++ b/tools/qfcc/source/function.c @@ -319,6 +319,7 @@ find_function (expr_t *fexpr, expr_t *params) return fexpr; memset (&type, 0, sizeof (type)); + type.type = ev_func; for (e = params; e; e = e->next) { if (e->type == ex_error)