mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-02-17 14:08:30 +00:00
Fix downgrade database
This commit is contained in:
parent
82c7662cdf
commit
f7c0e407ca
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user