]> granicus.if.org Git - php/commitdiff
Quash compile warning "warning: 'flags' may be used uninitialized in this function"
authorChristopher Jones <sixd@php.net>
Tue, 20 Aug 2013 20:36:18 +0000 (13:36 -0700)
committerChristopher Jones <sixd@php.net>
Tue, 20 Aug 2013 20:36:18 +0000 (13:36 -0700)
ext/pdo/pdo_stmt.c

index a469d09fc2e349b7533212243807e5c927898199..81224ab51a7deae8cf65ec418673b907e18b5587 100644 (file)
@@ -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;