summaryrefslogtreecommitdiff
path: root/src/twister/taler-twister-service.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/twister/taler-twister-service.c')
-rw-r--r--src/twister/taler-twister-service.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/src/twister/taler-twister-service.c b/src/twister/taler-twister-service.c
index 06676e8..33a043e 100644
--- a/src/twister/taler-twister-service.c
+++ b/src/twister/taler-twister-service.c
@@ -2312,7 +2312,7 @@ open_unix_path (const char *path,
* @param port[out] port number to use
* @param path[out] unix path for IPC.
* @param mode[out] mode string for @a path.
- * @return GNUNET_SYSERR if the parsing didn't succeed.
+ * @return #GNUNET_SYSERR if the parsing didn't succeed.
*/
static int
parse_serving_mean (const struct GNUNET_CONFIGURATION_Handle *cfg,
@@ -2397,10 +2397,7 @@ parse_serving_mean (const struct GNUNET_CONFIGURATION_Handle *cfg,
GNUNET_free (modestring);
return GNUNET_SYSERR;
}
-
GNUNET_free (modestring);
-
-
return GNUNET_OK;
}
@@ -2420,11 +2417,10 @@ run (void *cls,
const struct GNUNET_CONFIGURATION_Handle *c,
struct GNUNET_SERVICE_Handle *service)
{
- uint16_t port;
+ uint16_t port = 0;
int fh = -1;
-
- char *serve_unixpath;
- mode_t serve_unixmode;
+ char *serve_unixpath = NULL;
+ mode_t serve_unixmode = 0;
(void) cls;
(void) service;
@@ -2476,10 +2472,11 @@ run (void *cls,
return;
}
- if (GNUNET_SYSERR == parse_serving_mean (c,
- &port,
- &serve_unixpath,
- &serve_unixmode))
+ if (GNUNET_SYSERR ==
+ parse_serving_mean (c,
+ &port,
+ &serve_unixpath,
+ &serve_unixmode))
{
GNUNET_break (0);
GNUNET_SCHEDULER_shutdown ();