helly Sat Apr 3 04:52:02 2004 EDT
Modified files:
/php-src/ext/standard basic_functions.c
Log:
Initialize to 0 to prevent valgrind warnings
http://cvs.php.net/diff.php/php-src/ext/standard/basic_functions.c?r1=1.661&r2=1.662&ty=u
Index: php-src/ext/standard/basic_functions.c
diff -u php-src/ext/standard/basic_functions.c:1.661
php-src/ext/standard/basic_functions.c:1.662
--- php-src/ext/standard/basic_functions.c:1.661 Mon Mar 29 13:51:47 2004
+++ php-src/ext/standard/basic_functions.c Sat Apr 3 04:51:57 2004
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: basic_functions.c,v 1.661 2004/03/29 18:51:47 helly Exp $ */
+/* $Id: basic_functions.c,v 1.662 2004/04/03 09:51:57 helly Exp $ */
#include "php.h"
#include "php_streams.h"
@@ -955,7 +955,7 @@
#if HAVE_HUGE_VAL_NAN
return HUGE_VAL + -HUGE_VAL;
#elif defined(__i386__) || defined(_X86_) || defined(ALPHA) || defined(_ALPHA) ||
defined(__alpha)
- double val;
+ double val = 0.0;
((php_uint32*)&val)[1] = PHP_DOUBLE_QUIET_NAN_HIGH;
((php_uint32*)&val)[0] = 0;
return val;
@@ -971,7 +971,7 @@
#if HAVE_HUGE_VAL_NAN
return HUGE_VAL;
#elif defined(__i386__) || defined(_X86_) || defined(ALPHA) || defined(_ALPHA) ||
defined(__alpha)
- double val;
+ double val = 0.0;
((php_uint32*)&val)[1] = PHP_DOUBLE_INFINITY_HIGH;
((php_uint32*)&val)[0] = 0;
return val;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php