diff options
author | pixdamix <pixdamix@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2011-02-01 09:36:50 (EST) |
---|---|---|
committer | pixdamix <pixdamix@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2011-02-01 09:36:50 (EST) |
commit | 85144bba24942148ae2dee1e94267b6ba83c1741 (patch) | |
tree | 9b232b44aa47113abc8624800131fef68be20490 | |
parent | 7486bf366c05312e7d50d5f969a539a6a581fcac (diff) |
Fixed a bug causing segfaults when an upgraded package has less dependencies than the old package.
git-svn-id: http://opkg.googlecode.com/svn/trunk@598 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r-- | libopkg/opkg_install.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopkg/opkg_install.c b/libopkg/opkg_install.c index ec4afba..7838875 100644 --- 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++) { - cd1 = &pkg->depends[i]; + cd1 = &pkg->depends[k]; if (cd1->type != DEPEND) continue; for (l=0; l<cd1->possibility_count; l++) { |