From 1e63240dc8d2bcfff65f7260981c85331f5a3f4d Mon Sep 17 00:00:00 2001 From: Scoopta Date: Fri, 12 Jun 2020 22:25:20 -0700 Subject: [PATCH] memset is no longer used to clear sigact --- src/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 67ef23a..b9a188a 100644 --- a/src/main.c +++ b/src/main.c @@ -734,8 +734,7 @@ int main(int argc, char** argv) { map_put(config, "sort_order", sort_order); } - struct sigaction sigact; - memset(&sigact, 0, sizeof(sigact)); + struct sigaction sigact = {0}; sigact.sa_handler = sig; sigaction(SIGTERM, &sigact, NULL);