Skip to content

Commit 6e40ec7

Browse files
committed
Second go at fixing [-Wmissing-field-initializers] compiler warning in PDO
By 0 initializing the sub structs
1 parent 1892def commit 6e40ec7

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
@@ -750,7 +750,7 @@ static int do_fetch(pdo_stmt_t *stmt, int do_bind, zval *return_value, enum pdo_
750750
{
751751
int flags, idx, old_arg_count = 0;
752752
zend_class_entry *ce = NULL, *old_ce = NULL;
753-
zval grp_val, *pgrp, retval, old_ctor_args = {{0}};
753+
zval grp_val, *pgrp, retval, old_ctor_args = {{0}, {{0}}, {0}};
754754
int colno;
755755

756756
if (how == PDO_FETCH_USE_DEFAULT) {

0 commit comments

Comments
 (0)