mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-21 14:55:39 +00:00
[SDL2] pointer boolean (#8523)
This commit is contained in:
@@ -45,7 +45,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