From 85144bba24942148ae2dee1e94267b6ba83c1741 Mon Sep 17 00:00:00 2001 From: pixdamix Date: Tue, 01 Feb 2011 09:36:50 -0500 Subject: 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 --- (limited to 'libopkg') 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++) { -- cgit v0.9.1