minor cleanups

This commit is contained in:
Stephen Lombardo 2011-12-27 11:05:43 -05:00
parent 9f710946ac
commit 0da4a1a5c5
2 changed files with 2 additions and 2 deletions

View File

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

View File

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