Static analysis fix: let clang know _this->displays isn't NULL.

main
Ryan C. Gordon 2014-03-20 11:14:02 -04:00
parent 415675bef0
commit b99a6253da
1 changed files with 1 additions and 0 deletions

View File

@ -115,6 +115,7 @@ static SDL_VideoDevice *_this = NULL;
SDL_UninitializedVideo(); \ SDL_UninitializedVideo(); \
return retval; \ return retval; \
} \ } \
SDL_assert(_this->displays != NULL); \
if (displayIndex < 0 || displayIndex >= _this->num_displays) { \ if (displayIndex < 0 || displayIndex >= _this->num_displays) { \
SDL_SetError("displayIndex must be in the range 0 - %d", \ SDL_SetError("displayIndex must be in the range 0 - %d", \
_this->num_displays - 1); \ _this->num_displays - 1); \