/* Destroys |new| with |rtbst_destroy (new, destroy)|, first initializing right links in |new| that have not yet been initialized at time of call. */ static void copy_error_recovery (struct rtbst_table *new, rtbst_item_func *destroy) { struct rtbst_node *p = new->rtbst_root; if (p != NULL) { while (p->rtbst_rtag == RTBST_CHILD) p = p->rtbst_link[1]; p->rtbst_link[1] = NULL; } rtbst_destroy (new, destroy); }