do not check if lastbuf is NULL.

Suggested by mpi@