summaryrefslogtreecommitdiff
path: root/builtin.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-12-23 15:58:52 +0200
committerArnold D. Robbins <arnold@skeeve.com>2012-12-23 15:58:52 +0200
commitcec0cbdbda6a8b27d3f69eb5e2984d87b55f78fb (patch)
tree61c7c85228cdd11a1df3294b381bebc24341689a /builtin.c
parented17f7f9d71310c6418ba10a81bb35792f46cb08 (diff)
parentb0648b574c42f1d56253938a46f5299c95eef702 (diff)
downloadgawk-cec0cbdbda6a8b27d3f69eb5e2984d87b55f78fb.tar.gz
Merge branch 'gawk-4.0-stable'
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin.c b/builtin.c
index 07169a3d..09a3287f 100644
--- a/builtin.c
+++ b/builtin.c
@@ -1582,6 +1582,9 @@ printf_common(int nargs)
int i;
NODE *r, *tmp;
+ if (nargs == 0)
+ fatal(_("[s]printf called with no arguments"));
+
assert(nargs <= max_args);
for (i = 1; i <= nargs; i++) {
tmp = args_array[nargs - i] = POP();