]> Savannah Git Hosting - gnulib.git/commitdiff
regex-quote: fix recently-introduced typo
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 1 Oct 2023 01:03:48 +0000 (18:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 1 Oct 2023 01:04:14 +0000 (18:04 -0700)
Problem reported by Bruno Haible in:
https://lists.gnu.org/r/bug-gnulib/2023-09/msg00146.html
* lib/regex-quote.c (regex_quote_copy): Add missing #endif.

ChangeLog
lib/regex-quote.c

index a8b06d31c6efc52f4d45972de3fe853fd5ae4c66..463a44ffbb05c78ea8b3626bbe9e2000dab4e6b3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-09-30  Paul Eggert  <eggert@cs.ucla.edu>
+
+       regex-quote: fix recently-introduced typo
+       Problem reported by Bruno Haible in:
+       https://lists.gnu.org/r/bug-gnulib/2023-09/msg00146.html
+       * lib/regex-quote.c (regex_quote_copy): Add missing #endif.
+
 2023-09-30  Bruno Haible  <bruno@clisp.org>
 
        wgetcwd-lgpl: Add tests.
index 45fac5abce3bdbab630d3dd12aecd451364c8e30..f24760fdc73ad3d74f5fafa7d9a091298610c2d7 100644 (file)
@@ -211,6 +211,7 @@ regex_quote_copy (char *p, const char *string, const struct regex_quote_spec *sp
           memcpy (p, mbui_cur_ptr (iter), mb_len (mbui_cur (iter)));
           p += mb_len (mbui_cur (iter));
         }
+#endif
     }
   else
     {