Skip to content
Permalink
Browse files

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

  • Loading branch information
icculus committed Mar 20, 2014
1 parent 415675b commit b99a6253dabf672c090415f16d62aea8816fe0b2
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/video/SDL_video.c
@@ -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); \

0 comments on commit b99a625

Please sign in to comment.