mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fixed compiler warnings
warning: 'local_dval' may be used uninitialized in this function [-Wmaybe-uninitialized] warning: 'dval2' may be used uninitialized in this function [-Wmaybe-uninitialized]
This commit is contained in:
parent
1c67a9940a
commit
0119bbba6b
2 changed files with 3 additions and 3 deletions
|
@ -2138,8 +2138,8 @@ ZEND_API void zendi_smart_strcmp(zval *result, zval *s1, zval *s2) /* {{{ */
|
|||
{
|
||||
int ret1, ret2;
|
||||
int oflow1, oflow2;
|
||||
long lval1, lval2;
|
||||
double dval1, dval2;
|
||||
long lval1 = 0, lval2 = 0;
|
||||
double dval1 = 0.0, dval2 = 0.0;
|
||||
|
||||
if ((ret1=is_numeric_string_ex(Z_STRVAL_P(s1), Z_STRLEN_P(s1), &lval1, &dval1, 0, &oflow1)) &&
|
||||
(ret2=is_numeric_string_ex(Z_STRVAL_P(s2), Z_STRLEN_P(s2), &lval2, &dval2, 0, &oflow2))) {
|
||||
|
|
|
@ -132,7 +132,7 @@ static inline zend_uchar is_numeric_string_ex(const char *str, int length, long
|
|||
{
|
||||
const char *ptr;
|
||||
int base = 10, digits = 0, dp_or_e = 0;
|
||||
double local_dval;
|
||||
double local_dval = 0.0;
|
||||
zend_uchar type;
|
||||
|
||||
if (!length) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue