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);