Some code tweaks
This commit is contained in:
parent
2968ba9938
commit
5104567a24
6 changed files with 33 additions and 22 deletions
|
@ -79,7 +79,7 @@ unsigned char *DecompressData(const unsigned char *data, unsigned long compSize,
|
|||
pUncomp = (mz_uint8 *)malloc((size_t)uncompSize);
|
||||
|
||||
// Check correct memory allocation
|
||||
if (!pUncomp)
|
||||
if (pUncomp == NULL)
|
||||
{
|
||||
TraceLog(WARNING, "Out of memory while decompressing data");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue