dummyvideo: Change a thing returning a 0 pointer to return NULL instead.

This commit is contained in:
Ryan C. Gordon 2024-07-16 14:17:02 -04:00
parent 045f0456b1
commit bc1ceb0883
No known key found for this signature in database
GPG Key ID: FA148B892AB48044

View File

@ -89,13 +89,13 @@ static SDL_VideoDevice *DUMMY_InternalCreateDevice(const char *enable_hint)
SDL_VideoDevice *device;
if (!DUMMY_Available(enable_hint)) {
return 0;
return NULL;
}
/* Initialize all variables that we clean on shutdown */
device = (SDL_VideoDevice *)SDL_calloc(1, sizeof(SDL_VideoDevice));
if (!device) {
return 0;
return NULL;
}
device->is_dummy = SDL_TRUE;