mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-08-14 11:37:36 +00:00
Fix downgrade database
This commit is contained in:
@@ -149,7 +149,7 @@ static char *open_and_init_db(sqlite3 *&db) {
|
||||
if (ver > DB_VERSION) {
|
||||
// Don't support downgrading database
|
||||
sqlite3_close(db);
|
||||
return nullptr;
|
||||
return strdup("Downgrading database is not supported");
|
||||
}
|
||||
if (ver < 3) {
|
||||
// Policies
|
||||
|
Reference in New Issue
Block a user