cvs: php-src(PHP_5_3) /ext/msql php_msql.c
| From: | Felipe Pena | Date: | Sun, 05 Oct 2008 04:38:00 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/msql php_msql.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-53364@lists.php.net to get a copy of this message | ||
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);