diff options
author | Aaron Staple <astaple@cs.stanford.edu> | 2008-12-03 13:31:44 -0500 |
---|---|---|
committer | Aaron Staple <astaple@cs.stanford.edu> | 2008-12-03 13:31:44 -0500 |
commit | fa3ec70ca3b8ac0e4b5b2d5a643418ad6a5652f1 (patch) | |
tree | f6ac3371156896670aeec67df6f2a45471b31a3a /dbtests | |
parent | ea3e1d083078458f0669ee57ebf8ca56a32c9d18 (diff) | |
download | mongo-fa3ec70ca3b8ac0e4b5b2d5a643418ad6a5652f1.tar.gz |
Check trailing '/' correctly
Diffstat (limited to 'dbtests')
-rw-r--r-- | dbtests/dbtests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbtests/dbtests.cpp b/dbtests/dbtests.cpp index ae2835ab8d9..bcf2e229bb7 100644 --- a/dbtests/dbtests.cpp +++ b/dbtests/dbtests.cpp @@ -60,7 +60,7 @@ int main( int argc, char** argv ) { } argc -= offset; - if ( dbpathSpec[ dbpathSpec.length() ] != '/' ) + if ( dbpathSpec[ dbpathSpec.length() - 1 ] != '/' ) dbpathSpec += "/"; dbpath = dbpathSpec.c_str(); |