Commit 358ead7a authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

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
parent 038e1dc4
...@@ -896,7 +896,7 @@ static ULONG format_double( const double *ptr, unsigned char *buf ) ...@@ -896,7 +896,7 @@ static ULONG format_double( const double *ptr, unsigned char *buf )
static const double precision = 0.0000000000000001; static const double precision = 0.0000000000000001;
unsigned char *p = buf; unsigned char *p = buf;
double val = *ptr; double val = *ptr;
int neg, mag, mag2, use_exp; int neg, mag, mag2 = 0, use_exp;
if (isnan( val )) if (isnan( val ))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment