about summary refs log tree commit diff
path: root/time/strftime.c
diff options
context:
space:
mode:
Diffstat (limited to 'time/strftime.c')
-rw-r--r--time/strftime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time/strftime.c b/time/strftime.c
index 8893412581..38acc6478d 100644
--- a/time/strftime.c
+++ b/time/strftime.c
@@ -339,7 +339,7 @@ strftime (s, maxsize, format, tp)
 	    /* Format the number according to the PAD flag.  */
 
 	    register char *nf = &number_fmt[1];
-	    int printed;
+	    int printed = maxdigits;
 
 	    switch (pad)
 	      {