summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2015-01-22 18:44:27 +0100
committerAndrew Gregory <andrew.gregory.8@gmail.com>2017-05-11 06:45:30 +0200
commit185082daa60cb34d6084e0dbf234de97d3b15788 (patch)
treed50f2f6eb6f5c9342075be590d426f962a2a6dcb
parent037bcf62d0a9400dc6c20fe1dd2d3872ca24f975 (diff)
downloadpacman-185082daa60cb34d6084e0dbf234de97d3b15788.tar.gz
pacman-185082daa60cb34d6084e0dbf234de97d3b15788.tar.xz
fix threaded validation
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
-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;