From f0d9a01bccdaeb466c12c92057914bbfef59526c Mon Sep 17 00:00:00 2001 From: Antonin Kral Date: Thu, 15 Dec 2011 09:35:47 +0100 Subject: Imported Upstream version 2.0.2 --- db/db.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'db/db.cpp') diff --git a/db/db.cpp b/db/db.cpp index e6281d7..b1d1db8 100644 --- a/db/db.cpp +++ b/db/db.cpp @@ -708,6 +708,12 @@ int main(int argc, char* argv[]) { else { dbpath = "/data/db/"; } +#ifdef _WIN32 + if (dbpath.size() > 1 && dbpath[dbpath.size()-1] == '/') { + // size() check is for the unlikely possibility of --dbpath "/" + dbpath = dbpath.erase(dbpath.size()-1); + } +#endif if ( params.count("directoryperdb")) { directoryperdb = true; -- cgit v1.2.3