libpkgconf: iter: check list->tail for null, not list->head

pull/116/head
William Pitcock 2017-01-23 00:24:13 -06:00
parent 0927ecf1c6
commit db65f935f0
1 changed files with 1 additions and 1 deletions

View File

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