← Commit list

86fc2872b

Denys Vlasenko
Denys Vlasenko
2021-06-30
SUCCESS Duration: 153s

Subject

awk: replace incorrect use of union in undefined function check (no code changes)

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

editors/awk.c+1 -1
@@ -2912,7 +2912,7 @@ static var *evaluate(node *op, var *res)
debug_printf_eval("FUNC\n");
- if (!op->r.n->info && !op->r.f->body.first)
+ if (op->r.f->nargs == 0 && !op->r.f->body.first)
syntax_error(EMSG_UNDEF_FUNC);
/* The body might be empty, still has to eval the args */