| Index: third_party/libxslt/libxslt/numbers.c
|
| diff --git a/third_party/libxslt/libxslt/numbers.c b/third_party/libxslt/libxslt/numbers.c
|
| index e769c42b057058b8c998379b620da635591dec69..3b932a59ba55d0e744caf2327017e10aec95327b 100644
|
| --- a/third_party/libxslt/libxslt/numbers.c
|
| +++ b/third_party/libxslt/libxslt/numbers.c
|
| @@ -1099,7 +1099,8 @@ xsltFormatNumberConversion(xsltDecimalFormatPtr self,
|
| }
|
|
|
| /* We have finished the integer part, now work on fraction */
|
| - if (xsltUTF8Charcmp(the_format, self->decimalPoint) == 0) {
|
| + if ( (*the_format != 0) &&
|
| + (xsltUTF8Charcmp(the_format, self->decimalPoint) == 0) ) {
|
| format_info.add_decimal = TRUE;
|
| the_format += xsltUTF8Size(the_format); /* Skip over the decimal */
|
| }
|
|
|