From 6e40ec7de95a945a255f7d16b8ead51ad68e9bf5 Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Sat, 22 Feb 2020 01:01:07 +0100 Subject: [PATCH] Second go at fixing [-Wmissing-field-initializers] compiler warning in PDO By 0 initializing the sub structs --- ext/pdo/pdo_stmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 84afe14b60..162b47ee6c 100644 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -750,7 +750,7 @@ static int do_fetch(pdo_stmt_t *stmt, int do_bind, zval *return_value, enum pdo_ { int flags, idx, old_arg_count = 0; zend_class_entry *ce = NULL, *old_ce = NULL; - zval grp_val, *pgrp, retval, old_ctor_args = {{0}}; + zval grp_val, *pgrp, retval, old_ctor_args = {{0}, {{0}}, {0}}; int colno; if (how == PDO_FETCH_USE_DEFAULT) { -- 2.40.0