fixed compiler warning by adding missing variable initialization
authorHolger Schemel <info@artsoft.org>
Wed, 27 Sep 2017 20:04:28 +0000 (22:04 +0200)
committerHolger Schemel <info@artsoft.org>
Wed, 27 Sep 2017 20:04:59 +0000 (22:04 +0200)
src/screens.c

index ba5a211..0a63c2e 100644 (file)
@@ -6581,6 +6581,8 @@ static boolean ConfigureJoystickMapButtonsAndAxes(SDL_Joystick *joystick)
     axis_x     = LoadCustomImage("joystick/axis_x.png");
     axis_y     = LoadCustomImage("joystick/axis_y.png");
 
     axis_x     = LoadCustomImage("joystick/axis_x.png");
     axis_y     = LoadCustomImage("joystick/axis_y.png");
 
+    marker = button;   /* initialize with reliable default value */
+
     bitmaps_initialized = TRUE;
   }
 
     bitmaps_initialized = TRUE;
   }