From 5104567a24021fb07e62f941b4b9e64f4bda56e7 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Sun, 18 Jan 2015 10:57:30 +0100 Subject: Some code tweaks --- src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils.c') diff --git a/src/utils.c b/src/utils.c index c3c20b47..dd08f5f8 100644 --- a/src/utils.c +++ b/src/utils.c @@ -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"); } -- cgit v1.2.3