summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-05-28 14:43:32 -0400
committerAaron <aaron@10gen.com>2009-05-28 14:43:32 -0400
commit0c2ab274ee2be1aadc0e616bb54a08545c3aa97e (patch)
treec89e2fe572b7f5426c7020ca5c47a5dc063cfc4b
parenta9645eda8a3478d5fbff03545de0368e23f09b91 (diff)
downloadmongo-0c2ab274ee2be1aadc0e616bb54a08545c3aa97e.tar.gz
protect global undefined_ variable MINOR
-rw-r--r--shell/utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/utils.cpp b/shell/utils.cpp
index 354f9c4ffec..ee876c62ef9 100644
--- a/shell/utils.cpp
+++ b/shell/utils.cpp
@@ -34,7 +34,7 @@ namespace mongo {
b.appendUndefined( "" );
return b.obj();
}
- BSONObj undefined_ = makeUndefined();
+ const BSONObj undefined_ = makeUndefined();
BSONObj encapsulate( const BSONObj &obj ) {
return BSON( "" << obj );