Fix some cppcheck warnings (uninitialized variable usages)