diff mbox series

[5/6] main: Init list of procs/cores/threads

Message ID 20180703065810.14917-5-mikey@neuling.org
State Accepted
Headers show
Series [1/6] htm: Fix compiling on ARM | expand

Commit Message

Michael Neuling July 3, 2018, 6:58 a.m. UTC
These are just on the stack so will contain anything.

Signed-off-by: Michael Neuling <mikey@neuling.org>
---
 src/main.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/src/main.c b/src/main.c
index 759f955897..1efbcc635a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -266,6 +266,10 @@  static bool parse_options(int argc, char *argv[])
 	};
 	char *endptr;
 
+	memset(p_list, 0, sizeof(p_list));
+	memset(c_list, 0, sizeof(c_list));
+	memset(t_list, 0, sizeof(t_list));
+
 	do {
 		c = getopt_long(argc, argv, "+ab:c:d:hp:s:t:D:V", long_opts, NULL);
 		if (c == -1)