From 85144bba24942148ae2dee1e94267b6ba83c1741 Mon Sep 17 00:00:00 2001 From: pixdamix Date: Tue, 1 Feb 2011 14:36:50 +0000 Subject: [PATCH] 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 --- libopkg/opkg_install.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) { -- 2.25.1