mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 11:25:45 +01:00
fix: not actually returning NULL.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user