mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 07:10:06 +00:00
(re_string_reconstruct): Reset the member LEN and STOP.
This commit is contained in:
parent
988c1ea8a9
commit
dd385d7c7b
@ -422,6 +422,8 @@ re_string_reconstruct (pstr, idx, eflags, newline)
|
||||
if (MB_CUR_MAX > 1)
|
||||
memset (&pstr->cur_state, '\0', sizeof (mbstate_t));
|
||||
#endif /* RE_ENABLE_I18N */
|
||||
pstr->len += pstr->raw_mbs_idx;
|
||||
pstr->stop += pstr->raw_mbs_idx;
|
||||
pstr->valid_len = pstr->raw_mbs_idx = 0;
|
||||
pstr->tip_context = ((eflags & REG_NOTBOL) ? CONTEXT_BEGBUF
|
||||
: CONTEXT_NEWLINE | CONTEXT_BEGBUF);
|
||||
|
Loading…
Reference in New Issue
Block a user