From 358ead7ab474b74640ac578e503a7166a4e29fd4 Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Sat, 18 Feb 2023 15:21:41 +0100 Subject: [PATCH] webservices: Avoid uninitialized variable warning in format_double. GCC 13 was going to diagnose dlls/webservices/writer.c:960:18: warning: 'mag2' may be used uninitialized --- dlls/webservices/writer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/webservices/writer.c b/dlls/webservices/writer.c index a4cfc94f08e..6923035f00c 100644 --- a/dlls/webservices/writer.c +++ b/dlls/webservices/writer.c @@ -896,7 +896,7 @@ static ULONG format_double( const double *ptr, unsigned char *buf ) static const double precision = 0.0000000000000001; unsigned char *p = buf; double val = *ptr; - int neg, mag, mag2, use_exp; + int neg, mag, mag2 = 0, use_exp; if (isnan( val )) { -- 2.11.4.GIT