NULL is ok in this case, just return EOF