commit: fix segfault
apk would try run the trigger even if package failed to install.cute-signatures
parent
065427f417
commit
0a4ff4f534
|
@ -206,7 +206,7 @@ static void run_triggers(struct apk_database *db, struct apk_changeset *changese
|
|||
if (pkg == NULL)
|
||||
continue;
|
||||
ipkg = pkg->ipkg;
|
||||
if (ipkg->pending_triggers->num == 0)
|
||||
if (ipkg == NULL || ipkg->pending_triggers->num == 0)
|
||||
continue;
|
||||
|
||||
*apk_string_array_add(&ipkg->pending_triggers) = NULL;
|
||||
|
|
Loading…
Reference in New Issue