Skip to content

Commit

Permalink
Array indox only if inside array
Browse files Browse the repository at this point in the history
  • Loading branch information
kzangeli committed Sep 5, 2023
1 parent c25fb99 commit 80c8825
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/orionld/mongoc/mongocKjTreeToBson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ void mongocKjTreeToBson(KjNode* treeP, bson_t* bsonP)
{
LM_T(LmtMongoc, ("Calling kjTreeToBson for '%s' of '%s'", itemP->name, treeP->name));
kjTreeToBson(itemP, bsonP, inArray, arrayIx);
++arrayIx;

if (inArray == true)
++arrayIx;
}
}

0 comments on commit 80c8825

Please sign in to comment.