summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbeval.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-01-15 10:58:29 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-01-15 10:58:29 -0500
commit01b4c851c2392857bfb6ef1c47d704a0dbb3daa9 (patch)
treeb7f55725f5b8486f58ea8673b80be9066b7f0d5d /src/mongo/db/dbeval.cpp
parentfb734fd9183e2929cc48d51988110c76d0d250a7 (diff)
downloadmongo-01b4c851c2392857bfb6ef1c47d704a0dbb3daa9.tar.gz
Fix type comparison break
Diffstat (limited to 'src/mongo/db/dbeval.cpp')
-rw-r--r--src/mongo/db/dbeval.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/dbeval.cpp b/src/mongo/db/dbeval.cpp
index 1f757637b14..ee4f3480aeb 100644
--- a/src/mongo/db/dbeval.cpp
+++ b/src/mongo/db/dbeval.cpp
@@ -92,7 +92,7 @@ namespace {
s->registerOperation(txn);
ScriptingFunction f = s->createFunction(code);
- if (f == NULL) {
+ if (f == 0) {
errmsg = string("compile failed: ") + s->getError();
return false;
}