projects
/
oweals
/
opkg-lede.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed a bug causing segfaults when an upgraded package has less dependencies than...
[oweals/opkg-lede.git]
/
libopkg
/
opkg_install.c
diff --git
a/libopkg/opkg_install.c
b/libopkg/opkg_install.c
index ec4afba3702f3d19a46502f10ba3028162a67b28..783887509fad84d7b92786fb1f87e9f475ce19f5 100644
(file)
--- a/
libopkg/opkg_install.c
+++ b/
libopkg/opkg_install.c
@@
-324,7
+324,7
@@
pkg_remove_orphan_dependent(pkg_t *pkg, pkg_t *old_pkg)
found = 0;
for (k=0; k<count1; k++) {
found = 0;
for (k=0; k<count1; k++) {
- cd1 = &pkg->depends[
i
];
+ cd1 = &pkg->depends[
k
];
if (cd1->type != DEPEND)
continue;
for (l=0; l<cd1->possibility_count; l++) {
if (cd1->type != DEPEND)
continue;
for (l=0; l<cd1->possibility_count; l++) {