Placate static analysis with an assertion.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 10 Apr 2015 21:40:50 -0400
changeset 9546 d997877cdad7
parent 9545 52560d9d0ceb
child 9547 208ccaf7b64c
Placate static analysis with an assertion.
src/video/SDL_video.c
--- a/src/video/SDL_video.c	Fri Apr 10 21:15:51 2015 -0400
+++ b/src/video/SDL_video.c	Fri Apr 10 21:40:50 2015 -0400
@@ -2055,6 +2055,7 @@
         if (SDL_GetWindowGammaRamp(window, NULL, NULL, NULL) < 0) {
             return -1;
         }
+        SDL_assert(window->gamma != NULL);
     }
 
     if (red) {