From db65f935f0822fcfbaa27df73fc1b15ef1f091b6 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Mon, 23 Jan 2017 00:24:13 -0600 Subject: [PATCH] libpkgconf: iter: check list->tail for null, not list->head --- libpkgconf/iter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpkgconf/iter.h b/libpkgconf/iter.h index 6aa28e5..59cfac3 100644 --- a/libpkgconf/iter.h +++ b/libpkgconf/iter.h @@ -61,7 +61,7 @@ pkgconf_node_insert_tail(pkgconf_node_t *node, void *data, pkgconf_list_t *list) node->data = data; - if (list->head == NULL) + if (list->tail == NULL) { list->head = node; list->tail = node;