fix: initialize block->next to NULL for each new block
This commit is contained in:
parent
61fc466429
commit
658e23eb93
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user