iter->xhv_name_count = 0;
}
else {
- spot = (HEK **)iter->xhv_name;
if(iter->xhv_name_count > 0) {
/* shift some things over */
- Renew(spot, iter->xhv_name_count, HEK *);
- spot[iter->xhv_name_count++] = spot[1];
+ Renewc(
+ iter->xhv_name, iter->xhv_name_count + 1, HEK *, HEK
+ );
+ spot = (HEK **)iter->xhv_name;
+ spot[iter->xhv_name_count] = spot[1];
spot[1] = spot[0];
+ iter->xhv_name_count = -(iter->xhv_name_count + 1);
}
- else if(*spot) {
+ else if(*(spot = (HEK **)iter->xhv_name)) {
unshare_hek_or_pvn(*spot, 0, 0, 0);
}
}