Browse Source

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
pixdamix 13 years ago
parent
commit
85144bba24
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libopkg/opkg_install.c

+ 1 - 1
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++) {