Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
laffer1 committed Oct 17, 2021
1 parent 60f4c6b commit d0a3c6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libmport/check_preconditions.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static int check_if_installed(mportInstance *mport, mportPackageMeta *pack)
char *full_name;
asprintf(&full_name, "%s-%s", pack->flavor, pack->name);
if (full_name != NULL) {
if (mport_db_prepare(db, &stmt, "SELECT version, os_release FROM packages WHERE pkg=%Q", full_name) !=
if (mport_db_prepare(mport->db, &stmt, "SELECT version, os_release FROM packages WHERE pkg=%Q", full_name) !=
MPORT_OK) {
sqlite3_finalize(stmt);
RETURN_CURRENT_ERROR;
Expand All @@ -110,7 +110,7 @@ static int check_if_installed(mportInstance *mport, mportPackageMeta *pack)
/* Row was found */
inst_version = sqlite3_column_text(stmt, 0);
os_release = sqlite3_column_text(stmt, 1);
system_os_release = (char *) mport_get_osrelease(mport);
system_os_release = (char *) mport_get_osrelease_setting(mport);
if (system_os_release == NULL) {
system_os_release = (char *) mport_get_osrelease();
}
Expand All @@ -127,7 +127,7 @@ static int check_if_installed(mportInstance *mport, mportPackageMeta *pack)
RETURN_CURRENT_ERROR;
default:
/* Some sort of sqlite error */
SET_ERROR(MPORT_ERR_FATAL, sqlite3_errmsg(db));
SET_ERROR(MPORT_ERR_FATAL, sqlite3_errmsg(mport->db));
sqlite3_finalize(stmt);
RETURN_CURRENT_ERROR;
}
Expand Down Expand Up @@ -164,7 +164,7 @@ static int check_conflicts(mportInstance *mport, mportPackageMeta *pack)
/* No conflicts */
break;
} else {
SET_ERROR(MPORT_ERR_FATAL, sqlite3_errmsg(db));
SET_ERROR(MPORT_ERR_FATAL, sqlite3_errmsg(mport->db));
sqlite3_finalize(stmt);
RETURN_CURRENT_ERROR;
}
Expand Down

0 comments on commit d0a3c6a

Please sign in to comment.