From: pixdamix Date: Tue, 1 Feb 2011 14:36:50 +0000 (+0000) Subject: Fixed a bug causing segfaults when an upgraded package has less dependencies than... X-Git-Url: https://git.librecmc.org/?p=oweals%2Fopkg-lede.git;a=commitdiff_plain;h=85144bba24942148ae2dee1e94267b6ba83c1741 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 --- 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; kdepends[i]; + cd1 = &pkg->depends[k]; if (cd1->type != DEPEND) continue; for (l=0; lpossibility_count; l++) {