From: Dmitry Stogov Date: Wed, 15 Mar 2006 13:12:32 +0000 (+0000) Subject: Fixed zend_u_strtod() that returned uninitialized value in case of empty string X-Git-Tag: RELEASE_1_3~420 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18d6d9d6331124aef2c96ea3729735267f70bacf;p=php Fixed zend_u_strtod() that returned uninitialized value in case of empty string --- diff --git a/Zend/zend_strtod.c b/Zend/zend_strtod.c index bdc5daab53..f0a89b50a0 100644 --- a/Zend/zend_strtod.c +++ b/Zend/zend_strtod.c @@ -1800,7 +1800,7 @@ zend_strtod /* UTODO: someone can reimplement this using the code above, if they really want to. */ ZEND_API double zend_u_strtod(const UChar *nptr, UChar **endptr) { - double value; + double value = 0.0; int32_t num_conv = 0, num_read = 0; num_conv = u_sscanf(nptr, "%f%n", &value, &num_read);