Properly initialize buffers.

Valgrind complained about use of uninitialized data.