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
This commit is contained in:
Gerald Pfeifer 2023-02-18 15:21:41 +01:00 committed by Alexandre Julliard
parent 038e1dc47b
commit 358ead7ab4

View file

@ -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 ))
{