projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
find:: get rid of nested function (it's a gcc-ism)
[oweals/busybox.git]
/
editors
/
awk.c
diff --git
a/editors/awk.c
b/editors/awk.c
index 3224788c0f2419376c8a1bbf6d1ad79f13251449..0b573a065c18bfd237886ee563f661c5199acc78 100644
(file)
--- a/
editors/awk.c
+++ b/
editors/awk.c
@@
-2661,7
+2661,8
@@
static var *evaluate(node *op, var *res)
var *vbeg, *v;
const char *sv_progname;
- if (!op->r.f->body.first)
+ /* The body might be empty, still has to eval the args */
+ if (!op->r.n->info)
syntax_error(EMSG_UNDEF_FUNC);
vbeg = v = nvalloc(op->r.f->nargs + 1);