From bc1ceb0883cc7dc973b42a852927395d9f1432a2 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 16 Jul 2024 14:17:02 -0400 Subject: [PATCH] dummyvideo: Change a thing returning a 0 pointer to return NULL instead. --- src/video/dummy/SDL_nullvideo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/dummy/SDL_nullvideo.c b/src/video/dummy/SDL_nullvideo.c index e4f8efa90..a001433b5 100644 --- a/src/video/dummy/SDL_nullvideo.c +++ b/src/video/dummy/SDL_nullvideo.c @@ -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;