Static analysis fix: let clang know _this->displays isn't NULL.
--HG-- extra : histedit_source : 99316ad09963ca7e5928612b373cbb83dfda8530
This commit is contained in:
parent
a23e431952
commit
dc1ff19a6a
1 changed files with 1 additions and 0 deletions
|
@ -115,6 +115,7 @@ static SDL_VideoDevice *_this = NULL;
|
|||
SDL_UninitializedVideo(); \
|
||||
return retval; \
|
||||
} \
|
||||
SDL_assert(_this->displays != NULL); \
|
||||
if (displayIndex < 0 || displayIndex >= _this->num_displays) { \
|
||||
SDL_SetError("displayIndex must be in the range 0 - %d", \
|
||||
_this->num_displays - 1); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue