Commit 72219bbe authored by William A. Rowe Jr's avatar William A. Rowe Jr
Browse files

  This broken bit causes a segfault after locking pconf as read-only.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91181 13f79535-47bb-0310-9956-ffa450edef68
parent 967c0959
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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)
  {