minor cleanups
This commit is contained in:
parent
9f710946ac
commit
0da4a1a5c5
@ -266,7 +266,7 @@ int sqlite3_rekey(sqlite3 *db, const void *pKey, int nKey) {
|
||||
|
||||
sqlite3_mutex_enter(db->mutex);
|
||||
|
||||
codec_set_pass_key(db, 0, pKey, nKey, 1);
|
||||
codec_set_pass_key(db, 0, pKey, nKey, CIPHER_WRITE_CTX);
|
||||
|
||||
/* do stuff here to rewrite the database
|
||||
** 1. Create a transaction on the database
|
||||
|
||||
@ -76,7 +76,7 @@ int sqlcipher_random (void *buffer, int length) {
|
||||
*/
|
||||
void sqlcipher_free(void *ptr, int sz) {
|
||||
if(ptr) {
|
||||
if(sz > 0) memset(ptr, 0, sz); // FIXME - require buffer size
|
||||
if(sz > 0) memset(ptr, 0, sz);
|
||||
sqlite3_free(ptr);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user