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

William Pitcock 2017-01-23 00:24:13 -06:00
parent 725df9ce23
commit b9a80e6780
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;