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

This commit is contained in:
Sylvain Becker
2023-11-11 10:29:05 +01:00
committed by GitHub
parent c29df1699e
commit f3419d8c04
37 changed files with 73 additions and 73 deletions

View File

@@ -52,7 +52,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

@@ -97,7 +97,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);