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 8651 b1cb565609dc
parent 8650 058c88ce501c
child 8652 8514fc57f124
Static analysis fix: let clang know _this->displays isn't NULL.
src/video/SDL_video.c
--- a/src/video/SDL_video.c	Thu Mar 20 11:14:44 2014 -0400
+++ b/src/video/SDL_video.c	Thu Mar 20 11:14:02 2014 -0400
@@ -115,6 +115,7 @@
         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); \