Re-add SDL_assert() with non boolean ptr syntax (#8530)

This commit is contained in:
Sylvain Becker
2023-11-11 10:28:24 +01:00
committed by GitHub
parent b374105975
commit 04b6b2979f
35 changed files with 88 additions and 88 deletions

View File

@@ -47,7 +47,7 @@ char *SDL_GetBasePath(void)
rc = path.GetParent(&path); /* chop filename, keep directory. */
SDL_assert(rc == B_OK);
const char *str = path.Path();
SDL_assert(str);
SDL_assert(str != NULL);
const size_t len = SDL_strlen(str);
char *retval = (char *) SDL_malloc(len + 2);

View File

@@ -89,7 +89,7 @@ static char *search_path_for_binary(const char *bin)
return NULL;
}
SDL_assert(bin);
SDL_assert(bin != NULL);
alloc_size = SDL_strlen(bin) + SDL_strlen(envr) + 2;
exe = (char *)SDL_malloc(alloc_size);