fix: not actually returning NULL.

This commit is contained in:
2025-08-23 23:11:52 +02:00
parent 3cdee8b40c
commit 20ec45f230

View File

@@ -100,7 +100,7 @@ const u8 *nbt_nexttag(const u8 *restrict buf) {
MALLOC static void *nbt_procarr(const u8 *restrict buf, i32 nmem, uint size) {
u8 *ptr = malloc(nmem * size);
if (!ptr) NULL;
if (!ptr) return NULL;
memcpy(ptr, buf, nmem * size);
/* Only include this code for little-endian systems. Since only they require this logic.