lbarnaud Tue Oct 21 22:05:31 2008 UTC Modified files: /php-src/ext/mysql php_mysql.c Log: initialize optional vars http://cvs.php.net/viewvc.cgi/php-src/ext/mysql/php_mysql.c?r1=1.265&r2=1.266&diff_format=u Index: php-src/ext/mysql/php_mysql.c diff -u php-src/ext/mysql/php_mysql.c:1.265 php-src/ext/mysql/php_mysql.c:1.266 --- php-src/ext/mysql/php_mysql.c:1.265 Mon Sep 29 21:15:16 2008 +++ php-src/ext/mysql/php_mysql.c Tue Oct 21 22:05:30 2008 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_mysql.c,v 1.265 2008/09/29 21:15:16 johannes Exp $ */ +/* $Id: php_mysql.c,v 1.266 2008/10/21 22:05:30 lbarnaud Exp $ */ /* TODO: * @@ -1160,7 +1160,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; @@ -2040,8 +2040,8 @@ #endif 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|s&z", &res, &class_name, &class_name_len, UG(utf8_conv), &ctor_params) == FAILURE) { return;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php