swanctl: Properly initialize return value of --install command
authorMartin Willi <martin@revosec.ch>
Thu, 8 May 2014 12:02:26 +0000 (14:02 +0200)
committerMartin Willi <martin@revosec.ch>
Fri, 16 May 2014 13:42:07 +0000 (15:42 +0200)
src/swanctl/commands/install.c

index a0cef58..594d2ff 100644 (file)
@@ -23,7 +23,7 @@ static int manage_policy(vici_conn_t *conn, char *label)
        vici_res_t *res;
        bool raw = FALSE;
        char *arg, *child = NULL;
-       int ret;
+       int ret = 0;
 
        while (TRUE)
        {