From dbc5ebf31b529db5690dc0d1dad1498ff269e799 Mon Sep 17 00:00:00 2001 From: linmin Date: Sat, 14 Jun 2014 16:35:48 +0800 Subject: [PATCH] fix string compare error --- tools/convert_imageset.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/convert_imageset.cpp b/tools/convert_imageset.cpp index a381eaf..aa95155 100644 --- a/tools/convert_imageset.cpp +++ b/tools/convert_imageset.cpp @@ -67,7 +67,7 @@ int main(int argc, char** argv) { string db_backend = "leveldb"; if (argc >= (arg_offset+6)) { db_backend = string(argv[arg_offset+5]); - if (db_backend != "leveldb" || db_backend != "lmdb") { + if (!(db_backend == "leveldb") && !(db_backend == "lmdb")) { LOG(FATAL) << "Unknown db backend " << db_backend; } } -- 2.7.4