Skip to content

Commit 5f20d16

Browse files
bjoriderickr
authored andcommitted
No need to double-initialize boptions
1 parent e529d30 commit 5f20d16

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/MongoDB/Query.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ PHP_METHOD(Query, __construct)
7575
zval_to_bson(zfilter, PHONGO_BSON_NONE, &bfilter, NULL TSRMLS_CC);
7676

7777
if (zoptions) {
78-
bson_init(&boptions);
7978
zval_to_bson(zoptions, PHONGO_BSON_NONE, &boptions, NULL TSRMLS_CC);
8079
}
8180
if (!phongo_query_init(intern, &bfilter, &boptions TSRMLS_CC)) {

0 commit comments

Comments
 (0)