From 6889489555adca018329bb69076f54e787c1353b Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 18 Mar 2019 20:02:00 +0100 Subject: [PATCH] uninit? --- client/cmdtrace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/cmdtrace.c b/client/cmdtrace.c index 05a85a050..78e382854 100644 --- a/client/cmdtrace.c +++ b/client/cmdtrace.c @@ -186,7 +186,7 @@ uint16_t printTraceLine(uint16_t tracepos, uint16_t traceLen, uint8_t *trace, ui //2 Not crc-command //--- Draw the data column - char line[18][110]; + char line[18][110] = {{0}}; for (int j = 0; j < data_len && j / 18 < 18; j++) { @@ -335,7 +335,7 @@ void printFelica(uint16_t traceLen, uint8_t *trace) { uint8_t cmd = trace[tracepos]; uint8_t isResponse = cmd & 1; - char line[32][110]; + char line[32][110] = {{0}}; for (int j = 0; j < len + 1 && j / 8 < 32; j++) { snprintf(line[j / 8] + ((j % 8) * 4), 110, " %02x ", trace[tracepos + j]); }