From 4301fc613e768ef2c6d55d9d44a7e73bf83a907c Mon Sep 17 00:00:00 2001 From: Gabriel Ravier Date: Sun, 12 Apr 2020 01:10:15 +0200 Subject: [PATCH] Backends/Rendering/SDLTexture: `!x` -> `x == NULL` Signed-off-by: Gabriel Ravier --- src/Backends/Rendering/SDLTexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Backends/Rendering/SDLTexture.cpp b/src/Backends/Rendering/SDLTexture.cpp index ae0a5b90..339b417d 100644 --- a/src/Backends/Rendering/SDLTexture.cpp +++ b/src/Backends/Rendering/SDLTexture.cpp @@ -313,7 +313,7 @@ void RenderBackend_UnlockSurface(RenderBackend_Surface *surface, unsigned int wi unsigned char *buffer = (unsigned char*)malloc(width * height * 4); - if (!buffer) + if (buffer == NULL) { Backend_PrintError("Couldn't allocate memory for surface buffer: %s", SDL_GetError()); return;