cvs: ZendEngine2 / zend_API.c

[email protected] ("Felipe Pena")
Newsgroups php.zend-engine.cvs
Message-ID <cvsfelipe1210261175@cvsserver>
felipe		Thu May  8 15:39:35 2008 UTC

  Modified files:              
    /ZendEngine2	zend_API.c 
  Log:
  - Fix valgrind report (Conditional jump or move depends on uninitialised value)
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_API.c?r1=1.468&r2=1.469&diff_format=u
Index: ZendEngine2/zend_API.c
diff -u ZendEngine2/zend_API.c:1.468 ZendEngine2/zend_API.c:1.469
--- ZendEngine2/zend_API.c:1.468	Mon May  5 09:44:07 2008
+++ ZendEngine2/zend_API.c	Thu May  8 15:39:35 2008
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_API.c,v 1.468 2008/05/05 09:44:07 dmitry Exp $ */
+/* $Id: zend_API.c,v 1.469 2008/05/08 15:39:35 felipe Exp $ */
 
 #include "zend.h"
 #include "zend_execute.h"
@@ -2890,7 +2890,7 @@
 			{
 				zend_class_entry *ce = NULL;
 				zval **method;
-				zval **obj;
+				zval **obj = NULL;
 
 				if (zend_hash_num_elements(Z_ARRVAL_P(callable)) == 2 &&
 					zend_hash_index_find(Z_ARRVAL_P(callable), 0, (void **) &obj) == SUCCESS &&
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.