wmc: xmalloc shouldn't initialize to zero, do that explicitly where needed.