fix 'may be used uninitialized' warning

Probably this is a false positive by some gcc version, but initializing
the memory should be safe.