Some code tweaks

This commit is contained in:
raysan5 2015-01-18 10:57:30 +01:00
parent 2968ba9938
commit 5104567a24
6 changed files with 33 additions and 22 deletions

View file

@ -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");
}