core: blob: Always terminate blob next ptr

Signed-off-by: Chloe M. <chloe@mirocom.org>
This commit is contained in:
2026-04-30 21:11:42 -04:00
parent d7c0f78d02
commit d991988fd8
+1
View File
@@ -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 {