]> granicus.if.org Git - php/commitdiff
Fix [-Wmissing-field-initializers] compiler warning in ext/PDO
authorGeorge Peter Banyard <girgias@php.net>
Mon, 10 Feb 2020 22:49:13 +0000 (23:49 +0100)
committerGeorge Peter Banyard <girgias@php.net>
Mon, 10 Feb 2020 23:24:34 +0000 (00:24 +0100)
ext/pdo/pdo_stmt.c

index 84afe14b60235cd798903f58d3a86c2123a3412f..a15fde0595d4dbe36d7d407ae67e07e2da1781ad 100644 (file)
@@ -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;
        int colno;
 
        if (how == PDO_FETCH_USE_DEFAULT) {