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)
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>


Trivial merge