Fix a couple of cppcheck findings
- Nov 05, 2023
-
-
Christoph Grüninger authored
This prevents shadowing of i and j Found by cppcheck
-
Christoph Grüninger authored
Move dereference after NULL check Found by cppcheck
-
Christoph Grüninger authored
Found by cppcheck
-
Christoph Grüninger authored
Rename i to rule to use proper variable in debug output. This was found by cppcheck
-
Christoph Grüninger authored
Instead of printing the total of inspected elements, the code just pointed one element after the array. Add proper code to sum up the number of inspected elements. This was found by cppcheck
-
- Nov 04, 2023
-
-
Christoph Grüninger authored
After the for loop, i is beyond the last element. Founc by cppcheck
-
Christoph Grüninger authored
Saves a memory allocation. Found by cppcheck
-