From 20ec45f2306200bbf83210158e1fee6342008625 Mon Sep 17 00:00:00 2001 From: Quinn Date: Sat, 23 Aug 2025 23:11:52 +0200 Subject: [PATCH] fix: not actually returning NULL. --- src/dat/nbt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dat/nbt.c b/src/dat/nbt.c index 84ae5ee..c0d3c42 100644 --- a/src/dat/nbt.c +++ b/src/dat/nbt.c @@ -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.