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;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php