initialize m_len before using it