Copy/pasta error in alpm_get_upgrades that caused a segfault

This commit is contained in:
Aaron Griffin 2007-02-07 06:19:40 +00:00
parent 0e5326a767
commit 3d07ad9539
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}