From 4c9699f0d1890ea5ba3d821783f335637f35d209 Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Tue, 11 Feb 2020 00:57:11 +0100 Subject: [PATCH] Revert "Fix [-Wmissing-field-initializers] compiler warning in ext/PDO" Seems like Travis doesn't like this and now throws a [-Werror=maybe-uninitialized] instead. This reverts commit 051b01d465661e16f65bcfd58fcf1d7e03b26f35. --- 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 a15fde0595..84afe14b60 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; + zval grp_val, *pgrp, retval, old_ctor_args = {{0}}; int colno; if (how == PDO_FETCH_USE_DEFAULT) { -- 2.50.0