Fix cppcheck warnings (uninitialized integers)