summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libxslt/numbers.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libxslt/numbers.c b/libxslt/numbers.c
index 5e9b80e7..7004eeb5 100644
--- a/libxslt/numbers.c
+++ b/libxslt/numbers.c
@@ -382,7 +382,10 @@ xsltNumberFormatTokenize(const xmlChar *format,
tokens->tokens[tokens->nTokens].token = val - 1;
ix += len;
val = xmlStringCurrentChar(NULL, format+ix, &len);
- }
+ } else {
+ tokens->tokens[tokens->nTokens].token = (xmlChar)'0';
+ tokens->tokens[tokens->nTokens].width = 1;
+ }
} else if ( (val == (xmlChar)'A') ||
(val == (xmlChar)'a') ||
(val == (xmlChar)'I') ||