project-imas / encrypted-core-data

v2.0 - iOS Core Data encrypted SQLite store using SQLCipher
Other
785 stars 236 forks source link

is it ok code on not ? #292

Open Izulle opened 6 years ago

Izulle commented 6 years ago

Hello

I see such fragments in code: BOOL result = (statement != NULL && sqlite3_finalize(statement) == SQLITE_OK); if (!result && error) { *error = [self databaseError]; return result; }

for example in method

What will happen if result = NO, but error = nil ? Do you sure this will never happen ?