Browse Source

initialize variables

experimental/5.2-WITH_DRCP
Antony Dovgal 20 years ago
parent
commit
feba2edba2
  1. 8
      Zend/zend_strtod.c
  2. 5
      ext/standard/formatted_print.c

8
Zend/zend_strtod.c

@ -1449,9 +1449,9 @@ ZEND_API char * zend_dtoa(double _d, int mode, int ndigits, int *decpt, int *sig
to hold the suppressed trailing zeros.
*/
int bbits, b2, b5, be, dig, i, ieps, ilim, ilim0, ilim1,
int bbits, b2, b5, be, dig, i, ieps, ilim = 0, ilim0, ilim1,
j, j1, k, k0, k_check, leftright, m2, m5, s2, s5,
spec_case, try_quick;
spec_case = 0, try_quick;
Long L;
#ifndef Sudden_Underflow
int denorm;
@ -1828,9 +1828,9 @@ bump_up:
b2 += Log2P;
s2 += Log2P;
spec_case = 1;
}
else
} else {
spec_case = 0;
}
}
/* Arrange for convenient computation of quotients:

5
ext/standard/formatted_print.c

@ -196,9 +196,8 @@ php_sprintf_appenddouble(char **buffer, int *pos,
TSRMLS_DC)
{
char num_buf[NUM_BUF_SIZE];
char *s, *q;
int s_len;
int is_negative;
char *s = NULL, *q;
int s_len = 0, is_negative = 0;
PRINTF_DEBUG(("sprintf: appenddouble(%x, %x, %x, %f, %d, '%c', %d, %c)\n",
*buffer, pos, size, number, width, padding, alignment, fmt));

Loading…
Cancel
Save