libpkgconf: iter: check list->tail for null, not list->head
parent
0927ecf1c6
commit
db65f935f0
|
@ -61,7 +61,7 @@ pkgconf_node_insert_tail(pkgconf_node_t *node, void *data, pkgconf_list_t *list)
|
||||||
|
|
||||||
node->data = data;
|
node->data = data;
|
||||||
|
|
||||||
if (list->head == NULL)
|
if (list->tail == NULL)
|
||||||
{
|
{
|
||||||
list->head = node;
|
list->head = node;
|
||||||
list->tail = node;
|
list->tail = node;
|
||||||
|
|
Loading…
Reference in New Issue