shithub: cstory

Download patch

ref: 53e2b715d45f7e55b77f71f9f88975f77ffe2985
parent: d0b8aef2818da7c59b7c8ac1178f7fca8bfc7523
author: Gabriel Ravier <gabravier@gmail.com>
date: Sat Apr 11 21:19:35 EDT 2020

Backends/SDL2/Misc: `!x` -> `x == NULL`

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>

--- a/src/Backends/SDL2/Misc.cpp
+++ b/src/Backends/SDL2/Misc.cpp
@@ -86,7 +86,7 @@
 BOOL Backend_GetBasePath(char *string_buffer)
 {
 	char *base_path = SDL_GetBasePath();
-	if (!base_path)
+	if (base_path == NULL)
 		return FALSE;
 
 	// Trim the trailing '/'