diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2014-09-16 04:43:49 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2014-09-16 04:47:55 +0200 |
commit | dc54e9db982118ec71cc11b8d027e5a569810cba (patch) | |
tree | 34b0ca1ab9f4c153a551750dae6fea3b2dbf286a /src/db.cpp | |
parent | 7388b74cd2c5e3b71e991d26953c89c059ba6f2f (diff) | |
parent | 8d657a651735426388c5f7462e2dbf24225a26cb (diff) |
Merge pull request #4825
8d657a6 Fixing compiler warning C4800: 'type' forcing value to bool 'true' or 'false' (ENikS)
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 419b71e30d..edbff6fd49 100644 --- a/src/db.cpp +++ b/src/db.cpp @@ -232,7 +232,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; |