]> granicus.if.org Git - php/commitdiff
Second go at fixing [-Wmissing-field-initializers] compiler warning in PDO
authorGeorge Peter Banyard <girgias@php.net>
Sat, 22 Feb 2020 00:01:07 +0000 (01:01 +0100)
committerGeorge Peter Banyard <girgias@php.net>
Sat, 22 Feb 2020 00:01:07 +0000 (01:01 +0100)
By 0 initializing the sub structs

ext/pdo/pdo_stmt.c

index 84afe14b60235cd798903f58d3a86c2123a3412f..162b47ee6c20d33cd87a6a850f3e01d89c33c9f1 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 = {{0}, {{0}}, {0}};
        int colno;
 
        if (how == PDO_FETCH_USE_DEFAULT) {