mctp-demux-daemon: Explicitly disable verbose before option parsing
Otherwise we have control flow dependent on uninitialised data.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I0d9e5512ce198ceddf8fb7a09d15c8de991d0dbd
diff --git a/utils/mctp-demux-daemon.c b/utils/mctp-demux-daemon.c
index e30a607..da69210 100644
--- a/utils/mctp-demux-daemon.c
+++ b/utils/mctp-demux-daemon.c
@@ -6,6 +6,7 @@
#include <err.h>
#include <getopt.h>
#include <poll.h>
+#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -500,6 +501,7 @@
ctx->clients = NULL;
ctx->n_clients = 0;
ctx->local_eid = local_eid_default;
+ ctx->verbose = false;
for (;;) {
rc = getopt_long(argc, argv, "e:v", options, NULL);