summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorDwight <dwight@10gen.com>2010-08-02 14:44:53 -0400
committerDwight <dwight@10gen.com>2010-08-02 14:44:53 -0400
commit08eaec0599ef06a4f0db5b05ebbc051617d01a76 (patch)
tree4c6af984e8a4921063a4f2f16e2c15efb8f67fb3 /scripting
parentc43462c6b06a49a4319f2483829b34979e09334a (diff)
downloadmongo-08eaec0599ef06a4f0db5b05ebbc051617d01a76.tar.gz
check for null return from query()
Diffstat (limited to 'scripting')
-rw-r--r--scripting/engine.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripting/engine.cpp b/scripting/engine.cpp
index 7b47a0fb2d1..9e20a3a031c 100644
--- a/scripting/engine.cpp
+++ b/scripting/engine.cpp
@@ -170,6 +170,7 @@ namespace mongo {
static DBClientBase * db = createDirectClient();
auto_ptr<DBClientCursor> c = db->query( coll , Query() );
+ assert( c.get() );
set<string> thisTime;