Fix Coverity 700818. Uninitialized pointer field. Non-static class members are not initialized in this constructor.
Fix coverity 1026714. Modulo by zero. In fact an operator precedence error, fixed by applying brackets in the correct place.