diff options
author | Dmitry Stogov <dmitry@php.net> | 2006-03-15 13:12:32 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2006-03-15 13:12:32 +0000 |
commit | 18d6d9d6331124aef2c96ea3729735267f70bacf (patch) | |
tree | 57d22f61ca4ddd4d2b02173b751ddeae392aa811 | |
parent | c76917a7737e5f13e87c79863449b8a22bcc17ed (diff) | |
download | php-git-18d6d9d6331124aef2c96ea3729735267f70bacf.tar.gz |
Fixed zend_u_strtod() that returned uninitialized value in case of empty string
-rw-r--r-- | Zend/zend_strtod.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |