From 60254aa0e83199c3c156845c72d6eb50aebe36a2 Mon Sep 17 00:00:00 2001 From: jiangzhengwenjz Date: Mon, 1 Jun 2020 11:29:42 -0500 Subject: [PATCH] fix preproc (again *2) --- tools/preproc/charmap.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/preproc/charmap.cpp b/tools/preproc/charmap.cpp index 5625a85..1f3b8ce 100644 --- a/tools/preproc/charmap.cpp +++ b/tools/preproc/charmap.cpp @@ -70,6 +70,7 @@ CharmapReader::CharmapReader(std::string filename) : m_filename(filename) if (filename == "") { m_size = 0; + m_pos = 0; m_buffer = new char[1] {}; return; }