mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-11-04 01:34:38 +00:00 
			
		
		
		
	dummyvideo: Change a thing returning a 0 pointer to return NULL instead.
This commit is contained in:
		@@ -89,13 +89,13 @@ static SDL_VideoDevice *DUMMY_InternalCreateDevice(const char *enable_hint)
 | 
				
			|||||||
    SDL_VideoDevice *device;
 | 
					    SDL_VideoDevice *device;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!DUMMY_Available(enable_hint)) {
 | 
					    if (!DUMMY_Available(enable_hint)) {
 | 
				
			||||||
        return 0;
 | 
					        return NULL;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* Initialize all variables that we clean on shutdown */
 | 
					    /* Initialize all variables that we clean on shutdown */
 | 
				
			||||||
    device = (SDL_VideoDevice *)SDL_calloc(1, sizeof(SDL_VideoDevice));
 | 
					    device = (SDL_VideoDevice *)SDL_calloc(1, sizeof(SDL_VideoDevice));
 | 
				
			||||||
    if (!device) {
 | 
					    if (!device) {
 | 
				
			||||||
        return 0;
 | 
					        return NULL;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    device->is_dummy = SDL_TRUE;
 | 
					    device->is_dummy = SDL_TRUE;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user