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.
This commit is contained in:
Bill Currie 2013-01-07 13:52:48 +09:00
parent 338bb9bba0
commit 955e3ee258

View file

@ -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)