Skip to content

Commit e7c345f

Browse files
committed
don't init getMore command document twice
1 parent a55f91d commit e7c345f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/libmongoc/src/mongoc/mongoc-cursor-legacy.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ _mongoc_cursor_monitor_legacy_get_more (mongoc_cursor_t *cursor,
5151
RETURN (true);
5252
}
5353

54-
bson_init (&doc);
5554
_mongoc_cursor_prepare_getmore_command (cursor, &doc);
5655

5756
bson_strncpy (db, cursor->ns, cursor->dblen + 1);

0 commit comments

Comments
 (0)