TRQ-2548. Fix some uninitialized value errors reported by valgrind.