mirror of
https://github.com/CPunch/Laika.git
synced 2024-11-21 20:40:05 +00:00
Remove unneeded check
This commit is contained in:
parent
2fb0ef29a6
commit
d34a824133
@ -6,8 +6,7 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -16,4 +15,4 @@ void *laikaM_realloc(void *buf, size_t sz) {
|
|||||||
LAIKA_ERROR("failed to allocate memory!\n");
|
LAIKA_ERROR("failed to allocate memory!\n");
|
||||||
|
|
||||||
return newBuf;
|
return newBuf;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user