X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftal%2Ftal.c;h=9fed477fe9595bd4e85d5243f1315c602915a830;hp=32cfd0433a395982e4158851bd10c7d73b5c8682;hb=6c2ae3766a8cc59bf6903dcd60a559095f7655a4;hpb=f001ce92f87bbf06b2d94942b935ad7613a47cae diff --git a/ccan/tal/tal.c b/ccan/tal/tal.c index 32cfd043..9fed477f 100644 --- a/ccan/tal/tal.c +++ b/ccan/tal/tal.c @@ -317,8 +317,7 @@ static bool add_child(struct tal_hdr *parent, struct tal_hdr *child) children = add_child_property(parent, child); if (!children) return false; - children->group.list.n.next = children->group.list.n.prev - = &children->group.list.n; + list_head_init(&children->group.list); /* Child links to itself. */ child->next = child;