Fix uninitialized buffer