# SDL: Add missing break (82cd3)

**URL:** <https://discourse.libsdl.org/t/sdl-add-missing-break-82cd3/45101>\
**Category:** SDL Commits\
**Created:** [July 29, 2023, 2:34pm UTC](https://discourse.libsdl.org/t/sdl-add-missing-break-82cd3/45101 "2023-07-29T14:34:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [July 29, 2023, 2:34pm UTC](https://discourse.libsdl.org/t/sdl-add-missing-break-82cd3/45101/1 "2023-07-29T14:34:08Z")

</div>

> <https://github.com/libsdl-org/SDL/commit/82cd3bfe1ccf83ade85847460d76b370b94ada53>
>
> (cherry picked from commit 0500fca00c141cc4ab9be15ce5ddb7bc8c5c17b2)

```diff
From 82cd3bfe1ccf83ade85847460d76b370b94ada53 Mon Sep 17 00:00:00 2001
From: Mathieu Eyraud <[EMAIL REDACTED]>
Date: Sat, 29 Jul 2023 15:56:00 +0200
Subject: [PATCH] Add missing break

(cherry picked from commit 0500fca00c141cc4ab9be15ce5ddb7bc8c5c17b2)
---
 src/joystick/SDL_gamecontroller.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/joystick/SDL_gamecontroller.c b/src/joystick/SDL_gamecontroller.c
index e80700492ea4..035176b37f95 100644
--- a/src/joystick/SDL_gamecontroller.c
+++ b/src/joystick/SDL_gamecontroller.c
@@ -586,6 +586,7 @@ static ControllerMapping_t *SDL_CreateMappingForHIDAPIController(SDL_JoystickGUI
         switch (guid.data[15]) {
         case k_eSwitchDeviceInfoControllerType_HVCLeft:
             SDL_strlcat(mapping_string, "a:b0,b:b1,back:b4,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,leftshoulder:b9,rightshoulder:b10,start:b6,", sizeof(mapping_string));
+ break;
         case k_eSwitchDeviceInfoControllerType_HVCRight:
             SDL_strlcat(mapping_string, "a:b0,b:b1,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,leftshoulder:b9,rightshoulder:b10,", sizeof(mapping_string));
             break;

```
