From 4896390dde5b194cfe4a343ca144493c6dd006bd Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 28 Apr 2020 22:31:45 +0200 Subject: [PATCH] cppchecker fix --- client/src/cmdlfindala.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/cmdlfindala.c b/client/src/cmdlfindala.c index 69c1e5a55..6cf5ed28f 100644 --- a/client/src/cmdlfindala.c +++ b/client/src/cmdlfindala.c @@ -838,11 +838,12 @@ int detectIndala(uint8_t *dest, size_t *size, uint8_t *invert) { goto inv; } -inv: if (res == 0) { return -4; } +inv: + *invert ^= 1; if (*invert && idx > 0) {