We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent def3373 commit e451540Copy full SHA for e451540
1 file changed
src/crypto_impl.c
@@ -1158,11 +1158,9 @@ int sqlcipher_codec_ctx_migrate(codec_ctx *ctx) {
1158
db->nTotalChange = saved_nTotalChange;
1159
db->xTrace = saved_xTrace;
1160
db->autoCommit = 1;
1161
- if( pDb ){
1162
- sqlite3BtreeClose(pDb->pBt);
1163
- pDb->pBt = 0;
1164
- pDb->pSchema = 0;
1165
- }
+ sqlite3BtreeClose(pDb->pBt);
+ pDb->pBt = 0;
+ pDb->pSchema = 0;
1166
sqlite3ResetAllSchemasOfConnection(db);
1167
remove(migrated_db_filename);
1168
sqlite3_free(migrated_db_filename);
0 commit comments