Skip to content

Commit 74ed943

Browse files
committed
mongoc_cursor_cursorid_init takes an extra bson_error
1 parent 392e6f1 commit 74ed943

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

php_phongo.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,8 +643,9 @@ int phongo_execute_command(mongoc_client_t *client, const char *db, const bson_t
643643
* after the error checking above. */
644644
if (bson_iter_init_find(&iter, doc, "cursor") && BSON_ITER_HOLDS_DOCUMENT(&iter) && bson_iter_recurse(&iter, &child)) {
645645
mongoc_cursor_cursorid_t *cid;
646+
bson_t empty = BSON_INITIALIZER;
646647

647-
_mongoc_cursor_cursorid_init(cursor);
648+
_mongoc_cursor_cursorid_init(cursor, &empty);
648649
cursor->limit = 0;
649650

650651
cid = cursor->iface_data;

0 commit comments

Comments
 (0)