diff options
Diffstat (limited to 'gettext-tools/src/format-javascript.c')
-rw-r--r-- | gettext-tools/src/format-javascript.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gettext-tools/src/format-javascript.c b/gettext-tools/src/format-javascript.c index 9c5ee00..44814de 100644 --- a/gettext-tools/src/format-javascript.c +++ b/gettext-tools/src/format-javascript.c @@ -232,7 +232,7 @@ format_parse (const char *format, bool translated, char *fdi, goto bad_format; } - if (spec.allocated == spec.numbered_arg_count) + if (spec.allocated == unnumbered_arg_count) { spec.allocated = 2 * spec.allocated + 1; spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); |