We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a99d48d commit eadd166Copy full SHA for eadd166
1 file changed
src/Database.cpp
@@ -310,7 +310,7 @@ Header Database::getHeaderInfo(const std::string& aFilename)
310
311
// If the "magic string" can't be found then header is invalid, corrupt or unreadable
312
strncpy(pHeaderStr, pBuf, 16);
313
- if (!strncmp(pHeaderStr, "SQLite format 3", 15) == 0)
+ if (strncmp(pHeaderStr, "SQLite format 3", 15) != 0)
314
{
315
throw SQLite::Exception("Invalid or encrypted SQLite header in file " + aFilename);
316
}
0 commit comments