cvs: php-src /ext/msql php_msql.c
| From: | Felipe Pena | Date: | Sun, 05 Oct 2008 04:36:17 +0000 |
| Subject: | cvs: php-src /ext/msql php_msql.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-53363@lists.php.net to get a copy of this message | ||
felipe Sun Oct 5 04:36:17 2008 UTC
Modified files:
/php-src/ext/msql php_msql.c
Log:
- Initialize variable
http://cvs.php.net/viewvc.cgi/php-src/ext/msql/php_msql.c?r1=1.73&r2=1.74&diff_format=u
Index: php-src/ext/msql/php_msql.c
diff -u php-src/ext/msql/php_msql.c:1.73 php-src/ext/msql/php_msql.c:1.74
--- php-src/ext/msql/php_msql.c:1.73 Fri Oct 3 17:18:30 2008
+++ php-src/ext/msql/php_msql.c Sun Oct 5 04:36:17 2008
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_msql.c,v 1.73 2008/10/03 17:18:30 felipe Exp $ */
+/* $Id: php_msql.c,v 1.74 2008/10/05 04:36:17 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);