uninitialise the buffer to fix 'uninitialised byte(s)' error reported by valgrind