Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
apk-tools
Commits
0c1933a4
Commit
0c1933a4
authored
Apr 15, 2009
by
Natanael Copa
Browse files
state: fix bug with uninitialized variable 'latest'
parent
9567337f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/state.c
View file @
0c1933a4
...
...
@@ -220,7 +220,7 @@ int apk_state_lock_dependency(struct apk_state *state,
#if 1
/* Get latest and installed packages */
for
(
i
=
0
;
i
<
c
->
num
;
i
++
)
{
for
(
i
=
0
,
latest
=
NULL
;
i
<
c
->
num
;
i
++
)
{
struct
apk_package
*
pkg
=
c
->
pkgs
[
i
];
if
(
apk_pkg_get_state
(
c
->
pkgs
[
i
])
==
APK_PKG_INSTALLED
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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