From dc20cbb6725e3e1a1e38381c245e163f5aec6714 Mon Sep 17 00:00:00 2001 From: Jm Casler Date: Thu, 14 Apr 2022 15:57:31 -0700 Subject: [PATCH] one more fix for cppcheck --- src/mesh/compression/unishox2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/compression/unishox2.c b/src/mesh/compression/unishox2.c index 0ca650bb..8e91185a 100644 --- a/src/mesh/compression/unishox2.c +++ b/src/mesh/compression/unishox2.c @@ -973,7 +973,7 @@ int32_t readUnicode(const char *in, int *bit_no_p, int len) { if (idx == 99) return 0x7FFFFF00 + 99; if (idx == 5) { - int idx = getStepCodeIdx(in, len, bit_no_p, 4); + idx = getStepCodeIdx(in, len, bit_no_p, 4); return 0x7FFFFF00 + idx; } if (idx >= 0) {