com php-src: Avoid uninit warning in dtoa: Zend/zend_strtod .c
| From: | Nikita Popov | Date: | Fri, 12 Apr 2019 13:12:39 +0000 |
| Subject: | com php-src: Avoid uninit warning in dtoa: Zend/zend_strtod .c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-105698@lists.php.net to get a copy of this message | ||
Commit: e1ab68622815050dfb6ed3f927c438906c2569b9
Author: Nikita Popov <nikita.ppv@gmail.com> Fri, 12 Apr 2019 14:56:21 +0200
Parents: 339b0af42945829017491900b27e08d588241e0b
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e1ab68622815050dfb6ed3f927c438906c2569b9
Log:
Avoid uninit warning in dtoa
This code is extremely convoluted, I have no idea whether or not
this one is legitimate. Suppressing with explicit initialization.
Changed paths:
M Zend/zend_strtod.c
Diff:
diff --git a/Zend/zend_strtod.c b/Zend/zend_strtod.c
index a664897..f327ef4 100644
--- a/Zend/zend_strtod.c
+++ b/Zend/zend_strtod.c
@@ -3751,7 +3751,7 @@ zend_dtoa
*/
int bbits, b2, b5, be, dig, i, ieps, ilim = 0, ilim0, ilim1,
- j, j1, k, k0, k_check, leftright, m2, m5, s2, s5,
+ j, j1 = 0, k, k0, k_check, leftright, m2, m5, s2, s5,
spec_case = 0, try_quick;
Long L;
#ifndef Sudden_Underflow