com php-src: Quash compile warning "warning: 'flags' may be used uninitialized in this function": ext/pdo/pdo_stmt.c
| From: | Christopher Jones | Date: | Tue, 20 Aug 2013 20:36:18 +0000 |
| Subject: | com php-src: Quash compile warning "warning: 'flags' may be used uninitialized in this function": ext/pdo/pdo_stmt.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73040@lists.php.net to get a copy of this message | ||
Commit: e9b12bedc331631cbcc8605972325ca41ec50f01
Author: Christopher Jones <sixd@php.net> Tue, 20 Aug 2013 13:36:18 -0700
Parents: 9c9fee3f43024a674c98782681ea4caf7fa00574
Branches: PHP-5.4 PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e9b12bedc331631cbcc8605972325ca41ec50f01
Log:
Quash compile warning "warning: 'flags' may be used uninitialized in this
function"
Changed paths:
M ext/pdo/pdo_stmt.c
Diff:
diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c
index a469d09..81224ab 100644
--- a/ext/pdo/pdo_stmt.c
+++ b/ext/pdo/pdo_stmt.c
@@ -1876,7 +1876,7 @@ static PHP_METHOD(PDOStatement, getColumnMeta)
int pdo_stmt_setup_fetch_mode(INTERNAL_FUNCTION_PARAMETERS, pdo_stmt_t *stmt, int skip)
{
long mode = PDO_FETCH_BOTH;
- int flags, argc = ZEND_NUM_ARGS() - skip;
+ int flags = 0, argc = ZEND_NUM_ARGS() - skip;
zval ***args;
zend_class_entry **cep;
int retval;