Init buf variable