summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libalpm/sync.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 0e537696..57e83317 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -1150,13 +1150,12 @@ static void *check_validity_single(void *payload)
{
struct validity_payload *args = payload;
alpm_handle_t *handle = args->handle;
- alpm_list_t *pkgs = args->pkgs;
while(1) {
alpm_list_t *i;
_ALPM_TLOCK_TASK(handle);
- i = _alpm_list_shift(&pkgs);
+ i = _alpm_list_shift(&(args->pkgs));
if(!i) {
_ALPM_TUNLOCK_TASK(handle);
return NULL;