diff options
Diffstat (limited to 'dbtests/dbtests.cpp')
-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(); |