diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-12-23 15:58:52 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-12-23 15:58:52 +0200 |
commit | cec0cbdbda6a8b27d3f69eb5e2984d87b55f78fb (patch) | |
tree | 61c7c85228cdd11a1df3294b381bebc24341689a /builtin.c | |
parent | ed17f7f9d71310c6418ba10a81bb35792f46cb08 (diff) | |
parent | b0648b574c42f1d56253938a46f5299c95eef702 (diff) | |
download | gawk-cec0cbdbda6a8b27d3f69eb5e2984d87b55f78fb.tar.gz |
Merge branch 'gawk-4.0-stable'
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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(); |