]> Savannah Git Hosting - gnulib.git/commitdiff
regex: improve comment
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Oct 2021 08:07:56 +0000 (01:07 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Oct 2021 08:07:56 +0000 (01:07 -0700)
lib/regexec.c

index a955aa218251ac1128328745376d7533f103978e..106f9d7ff1087e418a595eee2fb838da819a2c54 100644 (file)
@@ -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])