1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 00:08:50 -05:00

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

View File

@ -1202,7 +1202,7 @@ alpm_list_t *alpm_get_upgrades()
pmsyncpkg_t *sync = NULL; pmsyncpkg_t *sync = NULL;
found = 0; found = 0;
for(s = syncpkgs; s && !found; s = s->next) { for(s = syncpkgs; s && !found; s = s->next) {
sync = i->data; sync = s->data;
if(sync && strcmp(sync->pkg->name, local->name) == 0) { if(sync && strcmp(sync->pkg->name, local->name) == 0) {
found = 1; found = 1;
} }