Fix uninitialized memory access (valgrind).