Static analysis fix: let clang know _this->displays isn't NULL.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 20 Mar 2014 11:14:02 -0400
changeset 8651b1cb565609dc
parent 8650 058c88ce501c
child 8652 8514fc57f124
Static analysis fix: let clang know _this->displays isn't NULL.
src/video/SDL_video.c
     1.1 --- a/src/video/SDL_video.c	Thu Mar 20 11:14:44 2014 -0400
     1.2 +++ b/src/video/SDL_video.c	Thu Mar 20 11:14:02 2014 -0400
     1.3 @@ -115,6 +115,7 @@
     1.4          SDL_UninitializedVideo(); \
     1.5          return retval; \
     1.6      } \
     1.7 +    SDL_assert(_this->displays != NULL); \
     1.8      if (displayIndex < 0 || displayIndex >= _this->num_displays) { \
     1.9          SDL_SetError("displayIndex must be in the range 0 - %d", \
    1.10                       _this->num_displays - 1); \