Skip to content

Commit 8deca28

Browse files
committed
Fix initializer for older C compilers
1 parent ed320b5 commit 8deca28

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

ext/pdo/pdo_stmt.c

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -638,15 +638,11 @@ static bool pdo_do_key_pair_fetch(pdo_stmt_t *stmt, enum pdo_fetch_orientation o
638638
static bool pdo_call_fetch_object_constructor(zend_function *constructor, HashTable *ctor_args, zval *return_value)
639639
{
640640
zval retval_constructor_call;
641-
zend_fcall_info fci = {
642-
.size = sizeof(zend_fcall_info),
643-
.function_name = { 0 },
644-
.object = Z_OBJ_P(return_value),
645-
.retval = &retval_constructor_call,
646-
.param_count = 0,
647-
.params = NULL,
648-
.named_params = ctor_args,
649-
};
641+
zend_fcall_info fci = { 0 };
642+
fci.size = sizeof(zend_fcall_info);
643+
fci.object = Z_OBJ_P(return_value);
644+
fci.retval = &retval_constructor_call;
645+
fci.named_params = ctor_args;
650646
zend_fcall_info_cache fcc = {
651647
.function_handler = constructor,
652648
.object = Z_OBJ_P(return_value),

0 commit comments

Comments
 (0)