src/events/SDL_keyboard.c
changeset 10801 4e2e979bdbee
parent 10737 3406a0f8b041
child 10926 97c829825e0e
     1.1 --- a/src/events/SDL_keyboard.c	Mon Jan 09 10:10:33 2017 -0800
     1.2 +++ b/src/events/SDL_keyboard.c	Mon Jan 09 11:30:29 2017 -0800
     1.3 @@ -968,8 +968,10 @@
     1.4  {
     1.5      SDL_Keycode key;
     1.6  
     1.7 -        /* Check input */
     1.8 -        if (name == NULL) return SDLK_UNKNOWN;
     1.9 +    /* Check input */
    1.10 +    if (name == NULL) {
    1.11 +        return SDLK_UNKNOWN;
    1.12 +    }
    1.13  
    1.14      /* If it's a single UTF-8 character, then that's the keycode itself */
    1.15      key = *(const unsigned char *)name;