summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;