Module: wine Branch: master Commit: 358ead7ab474b74640ac578e503a7166a4e29fd4 URL: https://gitlab.winehq.org/wine/wine/-/commit/358ead7ab474b74640ac578e503a716...
Author: Gerald Pfeifer gerald@pfeifer.com Date: Sat Feb 18 15:21:41 2023 +0100
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 )) {