fixed non-initialization issue in fromendf_tok()