SDL icon indicating copy to clipboard operation
SDL copied to clipboard

Potentially missing null check

Open szsam opened this issue 2 years ago • 0 comments

I'm not sure if we need check return values of the following functions for null. These functions are checked for null in most cases (70%+). https://github.com/libsdl-org/SDL/blob/a4604cb0d616db97921a2674a63b45f3fdfb81bc/src/video/x11/SDL_x11modes.c#L407 https://github.com/libsdl-org/SDL/blob/a4604cb0d616db97921a2674a63b45f3fdfb81bc/src/video/wayland/SDL_waylandvideo.c#L552 https://github.com/libsdl-org/SDL/blob/a4604cb0d616db97921a2674a63b45f3fdfb81bc/src/video/wayland/SDL_waylandvideo.c#L616 https://github.com/libsdl-org/SDL/blob/a4604cb0d616db97921a2674a63b45f3fdfb81bc/src/video/x11/SDL_x11mouse.c#L308

szsam avatar Apr 24 '23 19:04 szsam