core: blob: Always terminate blob next ptr
Signed-off-by: Chloe M. <chloe@mirocom.org>
This commit is contained in:
@@ -14,6 +14,7 @@ blob_allocate(struct data_stream *stmp)
|
|||||||
|
|
||||||
bp = xmalloc(sizeof(*bp));
|
bp = xmalloc(sizeof(*bp));
|
||||||
bp->length = (stmp != NULL) ? stmp->length : 0;
|
bp->length = (stmp != NULL) ? stmp->length : 0;
|
||||||
|
bp->next = NULL;
|
||||||
if (stmp == NULL) {
|
if (stmp == NULL) {
|
||||||
bp->data = NULL;
|
bp->data = NULL;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user