Skip to content

Commit

Permalink
Add problematic pattern when DEBUG_CONF is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Stern committed Oct 17, 2024
1 parent 89ff91d commit ecab91a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apache2/msc_pcre.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ void *msc_pregcomp_ex(apr_pool_t *pool, const char *pattern, int options,
PCRE2_UCHAR buffer[256];
// Get the error message from the error code
pcre2_get_error_message(error_number, buffer, sizeof(buffer));
*_errptr = apr_pstrdup(pool, buffer);
#ifdef DEBUG_CONF
* _errptr = apr_psprintf(pool, "%s - pattern = %s", buffer, pattern);
#else
* _errptr = apr_pstrdup(pool, buffer);
#endif
return NULL;
}

Expand Down

0 comments on commit ecab91a

Please sign in to comment.