diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-01-15 10:58:29 -0500 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-01-15 10:58:29 -0500 |
commit | 01b4c851c2392857bfb6ef1c47d704a0dbb3daa9 (patch) | |
tree | b7f55725f5b8486f58ea8673b80be9066b7f0d5d /src/mongo/db/dbeval.cpp | |
parent | fb734fd9183e2929cc48d51988110c76d0d250a7 (diff) | |
download | mongo-01b4c851c2392857bfb6ef1c47d704a0dbb3daa9.tar.gz |
Fix type comparison break
Diffstat (limited to 'src/mongo/db/dbeval.cpp')
-rw-r--r-- | src/mongo/db/dbeval.cpp | 2 |
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; } |