Merge pull request #4825

8d657a6 Fixing compiler warning C4800: 'type' forcing value to bool 'true' or 'false' (ENikS)
This commit is contained in:
Pieter Wuille
2014-09-16 04:43:49 +02:00
9 changed files with 23 additions and 23 deletions

View File

@@ -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;