From c85962f815d4ddeed816eb8f93a79c75e0089788 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 16 Oct 2020 17:09:27 +0200 Subject: [PATCH] fix coverity --- client/src/cmdlfdestron.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdlfdestron.c b/client/src/cmdlfdestron.c index 635f2b4f9..52ae5fc6d 100644 --- a/client/src/cmdlfdestron.c +++ b/client/src/cmdlfdestron.c @@ -71,7 +71,7 @@ int demodDestron(bool verbose) { parity_err += oddparity8(data[i]); data[i] &= 0x7F; } - if (errCnt > 0) { + if (parity_err > 0) { PrintAndLogEx(DEBUG, "DEBUG: Error - Destron: parity errors: %d", parity_err); return PM3_ESOFT; }