Commit bcb625b8 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

parasite: Init ret variable

Compiler doesn't like the ret unitialized
here (it's not a problem since SIGMAX is
never less than 1).
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 8a3e7f31
...@@ -264,7 +264,7 @@ static int dump_pages_fini(void) ...@@ -264,7 +264,7 @@ static int dump_pages_fini(void)
static int dump_sigact(struct parasite_dump_sa_args *da) static int dump_sigact(struct parasite_dump_sa_args *da)
{ {
int sig, ret; int sig, ret = 0;
for (sig = 1; sig < SIGMAX; sig++) { for (sig = 1; sig < SIGMAX; sig++) {
if (sig == SIGKILL || sig == SIGSTOP) if (sig == SIGKILL || sig == SIGSTOP)
......
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