db: fix APK_OPENF_NO_STATE check

fixes #10821
cute-signatures
Daniel Kolesa 2022-03-06 17:24:04 +01:00 committed by Timo Teräs
parent 296647e3f9
commit 1be55db3d0
1 changed files with 1 additions and 1 deletions

View File

@ -1730,7 +1730,7 @@ int apk_db_open(struct apk_database *db, struct apk_ctx *ac)
apk_db_read_overlay(db, apk_istream_from_fd(STDIN_FILENO));
}
if ((db->ctx->flags & APK_OPENF_NO_STATE) != APK_OPENF_NO_STATE) {
if ((db->ctx->open_flags & APK_OPENF_NO_STATE) != APK_OPENF_NO_STATE) {
for (i = 0; i < APK_DB_LAYER_NUM; i++) {
r = apk_db_read_layer(db, i);
if (r) {