mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-13 23:08:13 +00:00
Pointer as bool (libsdl-org#7214)
This commit is contained in:
@@ -472,7 +472,7 @@ char *SDLTest_RandomAsciiStringOfSize(int size)
|
||||
}
|
||||
|
||||
string = (char *)SDL_malloc((size + 1) * sizeof(char));
|
||||
if (string == NULL) {
|
||||
if (!string) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user