diff options
author | Timo Teräs <timo.teras@iki.fi> | 2010-06-15 14:40:46 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2010-06-15 14:40:46 +0300 |
commit | ec6359732dec5651567f593d07871b5b7997c91d (patch) | |
tree | 7cdc3f5fb85f92651e00d8c1403535f51801d0e5 /src/database.c | |
parent | efdd2f10f531c1f326092cf2bf2babbf79301356 (diff) | |
download | apk-tools-ec6359732dec5651567f593d07871b5b7997c91d.tar.gz apk-tools-ec6359732dec5651567f593d07871b5b7997c91d.tar.bz2 apk-tools-ec6359732dec5651567f593d07871b5b7997c91d.tar.xz apk-tools-ec6359732dec5651567f593d07871b5b7997c91d.zip |
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.
Diffstat (limited to 'src/database.c')
-rw-r--r-- | src/database.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/database.c b/src/database.c index a5113cd..5dcd9e0 100644 --- a/src/database.c +++ b/src/database.c @@ -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); } |