* [PATCH] regex: improve comment
@ 2021-10-19 8:08 Paul Eggert
0 siblings, 0 replies; only message in thread
From: Paul Eggert @ 2021-10-19 8:08 UTC (permalink / raw)
To: bug-gnulib; +Cc: Paul Eggert
---
lib/regexec.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/regexec.c b/lib/regexec.c
index a955aa218..106f9d7ff 100644
--- a/lib/regexec.c
+++ b/lib/regexec.c
@@ -758,8 +758,7 @@ re_search_internal (const regex_t *preg, const char *string, Idx length,
offset = match_first - mctx.input.raw_mbs_idx;
}
- /* If MATCH_FIRST is out of the buffer, leave it as '\0'.
- Note that MATCH_FIRST must not be smaller than 0. */
+ /* If OFFSET is out of the buffer, leave CH as '\0'. */
ch = (mctx.input.valid_len <= offset
? 0 : re_string_byte_at (&mctx.input, offset));
if (fastmap[ch])
--
2.32.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-19 8:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-19 8:08 [PATCH] regex: improve comment Paul Eggert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).