diff options
-rw-r--r-- | db/pdfile.cpp | 2 |
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; |