aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editors/awk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/awk.c b/editors/awk.c
index 35c11ec58..1115085da 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -2912,7 +2912,7 @@ static var *evaluate(node *op, var *res)
2912 2912
2913 debug_printf_eval("FUNC\n"); 2913 debug_printf_eval("FUNC\n");
2914 2914
2915 if (!op->r.n->info && !op->r.f->body.first) 2915 if (op->r.f->nargs == 0 && !op->r.f->body.first)
2916 syntax_error(EMSG_UNDEF_FUNC); 2916 syntax_error(EMSG_UNDEF_FUNC);
2917 2917
2918 /* The body might be empty, still has to eval the args */ 2918 /* The body might be empty, still has to eval the args */