From: George Peter Banyard Date: Mon, 10 Feb 2020 23:57:11 +0000 (+0100) Subject: Revert "Fix [-Wmissing-field-initializers] compiler warning in ext/PDO" X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c9699f0d1890ea5ba3d821783f335637f35d209;p=php 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. --- 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) {