@@ -273,7 +273,7 @@ zend_bool phongo_writeconcernerror_init(zval *return_value, bson_t *bson TSRMLS_
273
273
if (bson_iter_init_find (& iter , bson , "errInfo" ) && BSON_ITER_HOLDS_DOCUMENT (& iter )) {
274
274
uint32_t len ;
275
275
const uint8_t * data ;
276
- php_phongo_bson_state state = {NULL , {{ NULL , 0 }, { NULL , 0 }} };
276
+ php_phongo_bson_state state = {NULL , {NULL , NULL } };
277
277
278
278
bson_iter_document (& iter , & len , & data );
279
279
@@ -1202,7 +1202,7 @@ static void phongo_cursor_it_get_current_data(zend_object_iterator *iter, zval *
1202
1202
1203
1203
static void phongo_cursor_it_move_forward (zend_object_iterator * iter TSRMLS_DC ) /* {{{ */
1204
1204
{
1205
- php_phongo_bson_state state = {NULL , {{ NULL , 0 }, { NULL , 0 }} };
1205
+ php_phongo_bson_state state = {NULL , {NULL , NULL } };
1206
1206
phongo_cursor_it * cursor_it = (phongo_cursor_it * )iter ;
1207
1207
const bson_t * doc ;
1208
1208
@@ -1236,7 +1236,7 @@ static void phongo_cursor_it_move_forward(zend_object_iterator *iter TSRMLS_DC)
1236
1236
1237
1237
static void phongo_cursor_it_rewind (zend_object_iterator * iter TSRMLS_DC ) /* {{{ */
1238
1238
{
1239
- php_phongo_bson_state state = {NULL , {{ NULL , 0 }, { NULL , 0 }} };
1239
+ php_phongo_bson_state state = {NULL , {NULL , NULL } };
1240
1240
phongo_cursor_it * cursor_it = (phongo_cursor_it * )iter ;
1241
1241
1242
1242
/* firstBatch is empty when the query simply didn't return any results */
0 commit comments