]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
This broken bit causes a segfault after locking pconf as read-only.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 28 Sep 2001 17:15:12 +0000 (17:15 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 28 Sep 2001 17:15:12 +0000 (17:15 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91181 13f79535-47bb-0310-9956-ffa450edef68

srclib/pcre/pcreposix.c

index c6edb7dbecead04c442f60a6d75529ab6cbffbe6..e48d93e4c66a38a95fdab88763791114f120e4b7 100644 (file)
@@ -231,7 +231,12 @@ int *ovector = NULL;
 if ((eflags & REG_NOTBOL) != 0) options |= PCRE_NOTBOL;
 if ((eflags & REG_NOTEOL) != 0) options |= PCRE_NOTEOL;
 
+#if 0
+/* This causes a memory segfault after locking the const, thread-shared *preg 
+ * generated at compile time, and is entirely unnecessary.
+ */
 preg->re_erroffset = (size_t)(-1);   /* Only has meaning after compile */
+#endif
 
 if (nmatch > 0)
   {