[CRIU] [PATCH 1/5] parasite: Init ret variable
    Cyrill Gorcunov 
    gorcunov at openvz.org
       
    Sat Jul 28 08:13:29 EDT 2012
    
    
  
Compiler doesn't like the ret unitialized
here (it's not a problem since SIGMAX is
never less than 1).
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 parasite.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/parasite.c b/parasite.c
index 29a3e85..6a4318d 100644
--- a/parasite.c
+++ b/parasite.c
@@ -264,7 +264,7 @@ static int dump_pages_fini(void)
 
 static int dump_sigact(struct parasite_dump_sa_args *da)
 {
-	int sig, ret;
+	int sig, ret = 0;
 
 	for (sig = 1; sig < SIGMAX; sig++) {
 		if (sig == SIGKILL || sig == SIGSTOP)
-- 
1.7.7.6
    
    
More information about the CRIU
mailing list