cvs: php-src(PHP_5_3) /ext/mysql php_mysql.c

From: Date: Tue, 21 Oct 2008 22:07:43 +0000
Subject: cvs: php-src(PHP_5_3) /ext/mysql php_mysql.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-53650@lists.php.net to get a copy of this message
lbarnaud Tue Oct 21 22:07:43 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/mysql php_mysql.c Log: MFH: initialize optional vars http://cvs.php.net/viewvc.cgi/php-src/ext/mysql/php_mysql.c?r1=1.213.2.6.2.16.2.27&r2=1.213.2.6.2.16.2.28&diff_format=u Index: php-src/ext/mysql/php_mysql.c diff -u php-src/ext/mysql/php_mysql.c:1.213.2.6.2.16.2.27 php-src/ext/mysql/php_mysql.c:1.213.2.6.2.16.2.28 --- php-src/ext/mysql/php_mysql.c:1.213.2.6.2.16.2.27 Mon Sep 29 21:18:31 2008 +++ php-src/ext/mysql/php_mysql.c Tue Oct 21 22:07:42 2008 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_mysql.c,v 1.213.2.6.2.16.2.27 2008/09/29 21:18:31 johannes Exp $ */ +/* $Id: php_mysql.c,v 1.213.2.6.2.16.2.28 2008/10/21 22:07:42 lbarnaud Exp $ */ /* TODO: * @@ -1139,7 +1139,7 @@ Returns a string containing information about the most recent query */ PHP_FUNCTION(mysql_info) { - zval *mysql_link; + zval *mysql_link = NULL; int id = -1; char *str; php_mysql_conn *mysql; @@ -2057,8 +2057,8 @@ #ifdef ZEND_ENGINE_2 if (into_object) { - char *class_name; - int class_name_len; + char *class_name = NULL; + int class_name_len = 0; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|sz", &res, &class_name, &class_name_len, &ctor_params) == FAILURE) { return;

« previous php.cvs (#53650) next »