Skip to content

Commit

Permalink
evdev: Don't initialize struct sigaction with "{ 0 }".
Browse files Browse the repository at this point in the history
It causes warnings on some platforms, depending on the actual definition of
sigaction, and since this is static data, it'll be zero'd out anyhow.
  • Loading branch information
icculus committed Oct 3, 2018
1 parent 1944556 commit 93fb710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/linux/SDL_evdev_kbd.c
Expand Up @@ -198,7 +198,7 @@ static SDL_EVDEV_keyboard_state * kbd_cleanup_state = NULL;
static int kbd_cleanup_sigactions_installed = 0;
static int kbd_cleanup_atexit_installed = 0;

static struct sigaction old_sigaction[NSIG] = { 0 };
static struct sigaction old_sigaction[NSIG];

static int fatal_signals[] =
{
Expand Down

0 comments on commit 93fb710

Please sign in to comment.