Merge: lib/mongodb: minor fixes
authorJean Privat <jean@pryen.org>
Fri, 16 Oct 2015 20:16:05 +0000 (16:16 -0400)
committerJean Privat <jean@pryen.org>
Fri, 16 Oct 2015 20:16:05 +0000 (16:16 -0400)
commit2a68dffa7152f70b81730375d28d669974f88add
treeb7c9d885376b4a1930d49526cbb209c0befd7956
parent60a338c3195f76f45b4c163d2d98a875f9c0abf4
parent668a80fbeda2882cd5468bf3c92d0f91d1f91c57
Merge: lib/mongodb: minor fixes

This PR apply some fixes to the MongoDB library:
* avoids crash when `Collection::find` returns only one element
* fixes the SegFault workaround in `Collection::find`

Pull-Request: #1759
Reviewed-by: Jean Privat <jean@pryen.org>