From 716a3dad0542ced6bb264ed2ad1e333b7b57fe1a Mon Sep 17 00:00:00 2001 From: merlokk <807634+merlokk@users.noreply.github.com> Date: Mon, 9 Aug 2021 23:15:24 +0300 Subject: [PATCH] fix cov 354645 --- client/src/cmdhfmfdes.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/src/cmdhfmfdes.c b/client/src/cmdhfmfdes.c index 4df2adb46..52589572c 100644 --- a/client/src/cmdhfmfdes.c +++ b/client/src/cmdhfmfdes.c @@ -157,8 +157,7 @@ typedef struct aidhdr { static int CmdHelp(const char *Cmd); static int CLIGetUint32Hex(CLIParserContext *ctx, uint8_t paramnum, uint32_t defaultValue, uint32_t *value, bool *valuePresent, uint8_t nlen, const char *lengthErrorStr) { - if (value != NULL) - *value = defaultValue; + *value = defaultValue; if (valuePresent != NULL) *valuePresent = false;