diff options
author | ENikS <evgeni@eniks.com> | 2014-09-06 15:59:59 -0400 |
---|---|---|
committer | ENikS <evgeni@eniks.com> | 2014-09-06 15:59:59 -0400 |
commit | 8d657a651735426388c5f7462e2dbf24225a26cb (patch) | |
tree | 125b0e5b08f351d9d53eb11aee85673f779ce99f /src/db.cpp | |
parent | b8d92236f61699846f67d8ce6cb55458a46f9de1 (diff) |
Fixing compiler warning C4800: 'type' forcing value to bool 'true' or 'false'
Diffstat (limited to 'src/db.cpp')
-rw-r--r-- | src/db.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db.cpp b/src/db.cpp index 23d2cc988d..4ffbd61edd 100644 --- a/src/db.cpp +++ b/src/db.cpp @@ -231,7 +231,7 @@ CDB::CDB(const char *pszFile, const char* pszMode) : if (pszFile == NULL) return; - bool fCreate = strchr(pszMode, 'c'); + bool fCreate = strchr(pszMode, 'c') != NULL; unsigned int nFlags = DB_THREAD; if (fCreate) nFlags |= DB_CREATE; |