~aritra1911/mc_server

ecb6f8e47aab8c0d5a556b81ccabb1f15c8d770f — Aritra Sarkar 1 year, 11 months ago 7cd0a0d
Fix `-Wmissing-braces` on gcc 4.8.4

GCC bug 53119 : https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119
1 files changed, 2 insertions(+), 1 deletions(-)

M main.c
M main.c => main.c +2 -1
@@ 234,12 234,13 @@ int main(int argc, char **argv)
{
    int listener, args_parsed, num_events, exit_code;
    char err_str[STRERROR_BUFLEN];
    struct sigaction sa;
    prefs_t prefs;
    session_t session;
    tpool_t tpool;

    /* Set up signal handler for ^C (SIGINT) TODO: and ^\ (SIGQUIT) */
    struct sigaction sa = { 0 };
    memset(&sa, 0, sizeof(struct sigaction));
    sa.sa_handler = signal_handler;
    sigemptyset(&sa.sa_mask);  /* No need to block any other signals
                                * while the signal handler runs */