Commit 282df8ed authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Zero the sigaction structure, to make it obvious to Coverity that

we know what we're doing.
parent d66fc3f9
......@@ -412,6 +412,7 @@ mgt_launch_child(struct cli *cli)
#endif
if (mgt_param.sigsegv_handler) {
memset(&sa, 0, sizeof sa);
sa.sa_sigaction = mgt_sigsegv_handler;
sa.sa_flags = SA_SIGINFO;
(void)sigaction(SIGSEGV, &sa, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment