[libxslt] Fix clang -Wconditional-uninitialized warning in libxslt/numbers.c
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] Fix clang -Wconditional-uninitialized warning in libxslt/numbers.c
- Date: Fri, 10 Jan 2020 12:35:29 +0000 (UTC)
commit 291d190b3d37bfe58efe7328e37a5334c553126b
Author: David Kilzer <ddkilzer apple com>
Date: Tue Jan 7 15:15:53 2020 -0800
Fix clang -Wconditional-uninitialized warning in libxslt/numbers.c
* libxslt/numbers.c:
(xsltFormatNumberConversion): Initialize `len` to fix warning.
libxslt/numbers.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libxslt/numbers.c b/libxslt/numbers.c
index 92023f8a..7969dc98 100644
--- a/libxslt/numbers.c
+++ b/libxslt/numbers.c
@@ -960,7 +960,7 @@ xsltFormatNumberConversion(xsltDecimalFormatPtr self,
xmlChar *nprefix, *nsuffix = NULL;
int prefix_length, suffix_length = 0, nprefix_length, nsuffix_length;
double scale;
- int j, len;
+ int j, len = 0;
int self_grouping_len;
xsltFormatNumberInfo format_info;
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]