felipe Sun Oct 5 04:38:00 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/msql php_msql.c Log: - MFH: Initialize variable http://cvs.php.net/viewvc.cgi/php-src/ext/msql/php_msql.c?r1=1.60.2.4.2.2.2.6&r2=1.60.2.4.2.2.2.7&diff_format=u Index: php-src/ext/msql/php_msql.c diff -u php-src/ext/msql/php_msql.c:1.60.2.4.2.2.2.6 php-src/ext/msql/php_msql.c:1.60.2.4.2.2.2.7 --- php-src/ext/msql/php_msql.c:1.60.2.4.2.2.2.6 Fri Oct 3 17:21:49 2008 +++ php-src/ext/msql/php_msql.c Sun Oct 5 04:38:00 2008 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_msql.c,v 1.60.2.4.2.2.2.6 2008/10/03 17:21:49 felipe Exp $ */ +/* $Id: php_msql.c,v 1.60.2.4.2.2.2.7 2008/10/05 04:38:00 felipe Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -689,7 +689,7 @@ { zval *msql_link = NULL; char *query; - int id, msql, query_len, af_rows; + int id = -1, msql, query_len, af_rows; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|r", &query, &query_len, &msql_link) == FAILURE) { return; @@ -697,10 +697,6 @@ if (ZEND_NUM_ARGS() == 1) { id = msql_globals.default_link; - - if (id == -1) { - RETURN_FALSE; - } } ZEND_FETCH_RESOURCE2(msql, int, &msql_link, id, "mSQL-Link", msql_globals.le_link, msql_globals.le_plink);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php