Hacker News new | ask | show | jobs
by basugasubaku 5131 days ago
Your get_tail_child always returns NULL

  for (tail_ch = head_ch; tail_ch; tail_ch = tail_ch->next);

  return tail_ch;
2 comments

That was embarrasing. Should be fixed now: https://github.com/uggedal/going/commit/15a83397076ffbebe585...
Well spotted!

Going to want to add a test case with more than one child at a time. I think as is it loses all but the most recent child.