From 3d07ad9539394b1e2d56561ecf5479f03c36d64e Mon Sep 17 00:00:00 2001
From: Aaron Griffin <aaron@archlinux.org>
Date: Wed, 7 Feb 2007 06:19:40 +0000
Subject: Copy/pasta error in alpm_get_upgrades that caused a segfault

---
 lib/libalpm/alpm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'lib/libalpm')

diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c
index 62d46e6a..6465b12b 100644
--- a/lib/libalpm/alpm.c
+++ b/lib/libalpm/alpm.c
@@ -1202,7 +1202,7 @@ alpm_list_t *alpm_get_upgrades()
 			pmsyncpkg_t *sync = NULL;
 			found = 0;
 			for(s = syncpkgs; s && !found; s = s->next) {
-				sync = i->data;
+				sync = s->data;
 				if(sync && strcmp(sync->pkg->name, local->name) == 0) {
 					found = 1;
 				}
-- 
cgit v1.2.3-70-g09d2