diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-09-05 11:24:03 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-09-05 11:24:03 +0300 |
commit | c59f2580c1c2e3ac399c7fd33a860470e58ca76a (patch) | |
tree | 2db038b2be8bbf2456671f6ff5228b62e2641d06 /interpret.h | |
parent | 3f30f514c6e81c4a9e8ba1374a5080683783c382 (diff) | |
parent | 0f5cb955662136ad4a93e35db5721dd986dfd55b (diff) | |
download | egawk-c59f2580c1c2e3ac399c7fd33a860470e58ca76a.tar.gz egawk-c59f2580c1c2e3ac399c7fd33a860470e58ca76a.tar.bz2 egawk-c59f2580c1c2e3ac399c7fd33a860470e58ca76a.zip |
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'interpret.h')
-rw-r--r-- | interpret.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/interpret.h b/interpret.h index fee8136e..28804330 100644 --- a/interpret.h +++ b/interpret.h @@ -1039,12 +1039,13 @@ match_re: } if (f == NULL) { + fatal(_("`%s' is not a function, so it cannot be called indirectly"), + t1->stptr); + } else if (f->type == Node_builtin_func) { int arg_count = (pc + 1)->expr_count; builtin_func_t the_func = lookup_builtin(t1->stptr); - if (the_func == NULL) - fatal(_("`%s' is not a user-defined function, so it cannot be called indirectly"), - t1->stptr); + assert(the_func != NULL); /* call it */ r = the_func(arg_count); |