Commit ec635973 authored by Timo Teräs's avatar Timo Teräs

db: reinitialize trigger_pkg_list node after deletion

The trigger list can be reused after it's cleared, make sure
the list node is initialized all the time.
parent efdd2f10
......@@ -2113,6 +2113,7 @@ int apk_db_install_pkg(struct apk_database *db,
ipkg->flags |= APK_IPKGF_RUN_ALL_TRIGGERS;
if (ipkg->triggers->num != 0) {
list_del(&ipkg->trigger_pkgs_list);
list_init(&ipkg->trigger_pkgs_list);
apk_string_array_free(&ipkg->triggers);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment