summaryrefslogtreecommitdiff
path: root/dbtests
diff options
context:
space:
mode:
authorAaron Staple <astaple@cs.stanford.edu>2008-12-03 13:31:44 -0500
committerAaron Staple <astaple@cs.stanford.edu>2008-12-03 13:31:44 -0500
commitfa3ec70ca3b8ac0e4b5b2d5a643418ad6a5652f1 (patch)
treef6ac3371156896670aeec67df6f2a45471b31a3a /dbtests
parentea3e1d083078458f0669ee57ebf8ca56a32c9d18 (diff)
downloadmongo-fa3ec70ca3b8ac0e4b5b2d5a643418ad6a5652f1.tar.gz
Check trailing '/' correctly
Diffstat (limited to 'dbtests')
-rw-r--r--dbtests/dbtests.cpp2
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();