From cdac22fc5ce087416683373dd5d596aa9a7bb3c7 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 29 Jul 2012 04:04:46 -0500 Subject: [PATCH] queue: fix iteration ordering bug --- queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queue.c b/queue.c index 48fa233..3d1d7d6 100644 --- a/queue.c +++ b/queue.c @@ -53,7 +53,7 @@ pkg_queue_free(pkg_queue_t *head) { pkg_queue_t *pkgq, *next_pkgq; - PKG_FOREACH_LIST_ENTRY_SAFE(head, pkgq, next_pkgq) + PKG_FOREACH_LIST_ENTRY_SAFE(head, next_pkgq, pkgq) { free(pkgq->package); free(pkgq);