aboutsummaryrefslogtreecommitdiffstats
path: root/builtin.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-03-20 20:52:26 +0200
committerArnold D. Robbins <arnold@skeeve.com>2012-03-20 20:52:26 +0200
commitb630ded7a3489fc10a104f761013eb3b588fd408 (patch)
tree536c56756d204a072b7c668bea19e7f64aa4bd5f /builtin.c
parent366e06bf71b500939fa3a70e3cce91d9a7776e14 (diff)
downloadegawk-b630ded7a3489fc10a104f761013eb3b588fd408.tar.gz
egawk-b630ded7a3489fc10a104f761013eb3b588fd408.tar.bz2
egawk-b630ded7a3489fc10a104f761013eb3b588fd408.zip
Minor printf bug fix + new test for it everywhere.
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin.c b/builtin.c
index 30cf9a5d..a067eafc 100644
--- a/builtin.c
+++ b/builtin.c
@@ -613,7 +613,7 @@ format_tree(
long *cur = NULL;
uintmax_t uval;
int sgn;
- int base = 0;
+ int base;
/*
* Although this is an array, the elements serve two different
* purposes. The first element is the general buffer meant
@@ -724,6 +724,7 @@ format_tree(
cur = &fw;
fw = 0;
prec = 0;
+ base = 0;
argnum = 0;
have_prec = FALSE;
signchar = FALSE;