Skip to content

Commit e9b12be

Browse files
committed
Quash compile warning "warning: 'flags' may be used uninitialized in this function"
1 parent 9c9fee3 commit e9b12be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pdo/pdo_stmt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1876,7 +1876,7 @@ static PHP_METHOD(PDOStatement, getColumnMeta)
18761876
int pdo_stmt_setup_fetch_mode(INTERNAL_FUNCTION_PARAMETERS, pdo_stmt_t *stmt, int skip)
18771877
{
18781878
long mode = PDO_FETCH_BOTH;
1879-
int flags, argc = ZEND_NUM_ARGS() - skip;
1879+
int flags = 0, argc = ZEND_NUM_ARGS() - skip;
18801880
zval ***args;
18811881
zend_class_entry **cep;
18821882
int retval;

0 commit comments

Comments
 (0)