fix: initialize block->next to NULL for each new block

This commit is contained in:
Renge 2022-03-04 09:31:47 -05:00
parent 61fc466429
commit 658e23eb93

View File

@ -67,6 +67,7 @@ struct buffer *newbuffer(size_t itemsize)
blk->numprevious = blk->numhere = 0;
blk->maxhere = maxhere;
blk->items = items;
blk->next = NULL;
*errmsg = '\0';
return buf;