Fix major error in lxt2 info allocation.
The zero element was already returned so it can not be reused a second time. This was crashing when things went off the end of the list since the do all functor was off by one.
This commit is contained in:
parent
76cc024f67
commit
85e0f8a328
|
|
@ -76,8 +76,8 @@ struct vcd_info*new_vcd_info(void)
|
|||
return info_chunk_list->data + 0;
|
||||
}
|
||||
|
||||
struct vcd_info*ptr = cur_chunk->data + cur_chunk->chunk_fill;
|
||||
cur_chunk->chunk_fill += 1;
|
||||
struct vcd_info*ptr = cur_chunk->data + cur_chunk->chunk_fill;
|
||||
return ptr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue