index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-09-19 14:32:53 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-09-20 10:23:10 -0500 |
commit | 79cbce60ac4a40bf11d039e9bdcd09c852ce3292 (patch) | |
tree | c13c3310fb1167f448c238188a93873a63c4092d /lib/libalpm/deps.c | |
parent | 70e2c34f0f5db329b8e92fe3fc3043e495272f14 (diff) |
-rw-r--r-- | lib/libalpm/deps.c | 3 |
diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c index 0da20c16..08494a6c 100644 --- a/lib/libalpm/deps.c +++ b/lib/libalpm/deps.c @@ -644,7 +644,8 @@ static alpm_pkg_t *resolvedep(alpm_handle_t *handle, alpm_depend_t *dep, providers, dep, NULL, &index); } if(index >= 0 && index < count) { - alpm_pkg_t *pkg = alpm_list_getdata(alpm_list_nth(providers, index)); + alpm_list_t *nth = alpm_list_nth(providers, index); + alpm_pkg_t *pkg = nth->data; alpm_list_free(providers); return pkg; } |