save works
This commit is contained in:
parent
47fc32b02c
commit
43dc12a36c
19 changed files with 80 additions and 72 deletions
|
|
@ -444,7 +444,10 @@ static int xzarray_ensure_items(xzarray_t* array, int mincap)
|
|||
/* this will make we can get next free
|
||||
* location quickly
|
||||
*/
|
||||
array->pos = array->caps;
|
||||
if (array->data[array->pos].inuse) {
|
||||
array->pos = array->caps;
|
||||
}
|
||||
|
||||
array->caps = nc;
|
||||
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue