commit 31ba8375b0afbd0902a596bff7fb55249908ce9a
Author: Oswald Buddenhagen <o...@users.sf.net>
Date:   Sat Apr 12 15:16:22 2014 +0200

    fix segfault on passing --{create,expunge}-{master,slave}
    
    stupid copy&pasto.
    
    found by coverity.

 src/main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c
index f2faf25..8c3afda 100644
--- a/src/main.c
+++ b/src/main.c
@@ -289,9 +289,9 @@ main( int argc, char **argv )
                                        if (!*opt)
                                                cops |= op;
                                        else if (!strcmp( opt, "-master" ))
-                                               mvars->ops[M] |= op, ochar++;
+                                               mvars->ops[M] |= op;
                                        else if (!strcmp( opt, "-slave" ))
-                                               mvars->ops[S] |= op, ochar++;
+                                               mvars->ops[S] |= op;
                                        else
                                                goto badopt;
                                        mvars->ops[M] |= op & 
(XOP_HAVE_CREATE|XOP_HAVE_EXPUNGE);

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to