save works

This commit is contained in:
Rongsong Shen 2026-03-06 18:20:30 +08:00
parent 47fc32b02c
commit 43dc12a36c
19 changed files with 80 additions and 72 deletions

View file

@ -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;