diff options
author | Vyacheslav Tyutyunkov <tve@softmotions.com> | 2017-03-24 15:56:06 +0700 |
---|---|---|
committer | Ćukasz Stelmach <l.stelmach@samsung.com> | 2017-04-20 12:45:35 +0200 |
commit | 5ffbf0182884ea5c1f5632f102b07168bcb30b43 (patch) | |
tree | fda15b8110a3b9c424d99f2b3f879d1c358c9c2b /src/bson/bson.c | |
parent | e9a62d9693c1b42d44e277febf8de58cf2643db0 (diff) | |
download | ejdb-5ffbf0182884ea5c1f5632f102b07168bcb30b43.tar.gz ejdb-5ffbf0182884ea5c1f5632f102b07168bcb30b43.tar.bz2 ejdb-5ffbf0182884ea5c1f5632f102b07168bcb30b43.zip |
#170
Diffstat (limited to 'src/bson/bson.c')
-rw-r--r-- | src/bson/bson.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bson/bson.c b/src/bson/bson.c index 16b6e51..6ecde34 100644 --- a/src/bson/bson.c +++ b/src/bson/bson.c @@ -1829,7 +1829,7 @@ static void _bson_fix_duplicate_keys(bson_iterator *it, bson *bso) { int ind = 0; int j = -1; while(++j < TCLISTNUM(dups)) { - buf = tclistval(dups, TCLISTNUM(dups) - 1, &bufsz); + buf = tclistval(dups, j, &bufsz); memcpy(&itoff, buf, sizeof(itoff)); it2.cur = it->cur + itoff; it2.first = itoff == 0 ? it->first : 0; |