1
0
mirror of https://github.com/CPunch/Laika.git synced 2024-11-22 04:50:06 +00:00

Remove unneeded check

This commit is contained in:
CPunch 2022-04-07 23:21:09 -05:00
parent 2fb0ef29a6
commit d34a824133

View File

@ -6,7 +6,6 @@ void *laikaM_realloc(void *buf, size_t sz) {
/* are we free'ing the buffer? */ /* are we free'ing the buffer? */
if (sz == 0) { if (sz == 0) {
if (buf != NULL) /* sanity check :) */
free(buf); free(buf);
return NULL; return NULL;
} }