mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-01 07:28:30 +00:00
Pointer as bool (libsdl-org#7214)
This commit is contained in:
@@ -40,7 +40,7 @@ char *SDL_GetPrefPath(const char *org, const char *app)
|
||||
if (path) {
|
||||
size_t pathlen = SDL_strlen(path) + 2;
|
||||
char *fullpath = (char *)SDL_malloc(pathlen);
|
||||
if (fullpath == NULL) {
|
||||
if (!fullpath) {
|
||||
SDL_OutOfMemory();
|
||||
return NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user