ref: 4301fc613e768ef2c6d55d9d44a7e73bf83a907c
parent: 9ad14b897e1473670dc5de69e566d22ecbb0e19c
author: Gabriel Ravier <gabravier@gmail.com>
date: Sat Apr 11 21:10:15 EDT 2020
Backends/Rendering/SDLTexture: `!x` -> `x == NULL` Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
--- a/src/Backends/Rendering/SDLTexture.cpp
+++ b/src/Backends/Rendering/SDLTexture.cpp
@@ -313,7 +313,7 @@
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;