Fix uninitialized variable reported by cppcheck