From c0d5b2427c1cd62ada5abbeccbd938e840ee5e6c Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 26 Sep 2020 14:54:11 +0200 Subject: [PATCH] fix coverity --- common/generator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/generator.c b/common/generator.c index 37a1aa4f7..d0644c61a 100644 --- a/common/generator.c +++ b/common/generator.c @@ -479,7 +479,7 @@ int generator_selftest(void) { uint32_t lf_id = lf_t55xx_white_pwdgen(0x00000080); - success = (lf_id = 0x00018383); + success = (lf_id == 0x00018383); if (success) testresult++; PrintAndLogEx(success ? SUCCESS : WARNING, "ID | 0x00000080 | %08"PRIx32 " - %s", lf_id, success ? "OK" : "->00018383<--");