summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2010-03-24 09:49:25 -0700
committerAaron <aaron@10gen.com>2010-03-24 09:49:25 -0700
commit0da2c646ab4e60126fd67bf3f5984f7f8bea335b (patch)
tree84d759f290602e1b92541dfd6bf7f6cd8be20199
parentb42d93b75ab6d179d3ebefbd4e5093514f5b8d72 (diff)
downloadmongo-0da2c646ab4e60126fd67bf3f5984f7f8bea335b.tar.gz
rm compile warning
-rw-r--r--db/pdfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/pdfile.cpp b/db/pdfile.cpp
index c07e366d3f8..1c4608c5f24 100644
--- a/db/pdfile.cpp
+++ b/db/pdfile.cpp
@@ -1475,7 +1475,7 @@ namespace mongo {
} catch( DBException& ) {
// save our error msg string as an exception or dropIndexes will overwrite our message
LastError *le = lastError.get();
- int savecode;
+ int savecode = 0;
string saveerrmsg;
if ( le ) {
savecode = le->code;