Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
alpine
apk-tools
Commits
0a4ff4f5
Commit
0a4ff4f5
authored
Aug 05, 2013
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit: fix segfault
apk would try run the trigger even if package failed to install.
parent
065427f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/commit.c
src/commit.c
+1
-1
No files found.
src/commit.c
View file @
0a4ff4f5
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment