From 28032cd3bed74b2cf2b574d540b560285e6502c6 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 14 May 2021 08:08:56 +0200 Subject: [PATCH] coverity CID 322662 --- client/src/cmdhfmfu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/cmdhfmfu.c b/client/src/cmdhfmfu.c index 13b97e03a..e9d90c0c4 100644 --- a/client/src/cmdhfmfu.c +++ b/client/src/cmdhfmfu.c @@ -433,6 +433,7 @@ static int ndef_print_CC(uint8_t *data) { uint8_t cc_major = (data[1] & 0xC0) >> 6; char wStr[50]; + memset(wStr, 0, sizeof(wStr)); switch (cc_write) { case 0: sprintf(wStr, "Write access granted without any security"); @@ -448,6 +449,7 @@ static int ndef_print_CC(uint8_t *data) { break; } char rStr[46]; + memset(rStr, 0, sizeof(rStr)); switch (cc_read) { case 0: sprintf(rStr, "Read access granted without any security");