From: Martin Willi Date: Thu, 8 May 2014 12:02:26 +0000 (+0200) Subject: swanctl: Properly initialize return value of --install command X-Git-Tag: 5.2.0dr5~39^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=78db68cecf10ff800f28e80f1409eb4b7c4794bc;p=thirdparty%2Fstrongswan.git swanctl: Properly initialize return value of --install command --- diff --git a/src/swanctl/commands/install.c b/src/swanctl/commands/install.c index a0cef58d83..594d2ffe37 100644 --- a/src/swanctl/commands/install.c +++ b/src/swanctl/commands/install.c @@ -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) {