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 ba5a211911500f064607ea445b1b0a2f236e0dc8..0a63c2e40cb9575d5c65eecd94b3d75092cc2d06 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");
 
+    marker = button;   /* initialize with reliable default value */
+
     bitmaps_initialized = TRUE;
   }