Add REG_NOSUB as we only need matched results.

This commit is contained in:
Kurt Zeilenga 1999-08-24 04:33:34 +00:00
parent 78e4cb57aa
commit 46802eee03

View file

@ -396,7 +396,7 @@ test_substring_filter(
/* compile the regex */
Debug( LDAP_DEBUG_FILTER, "test_substring_filter: regcomp pat: %s\n",
pat, 0, 0 );
if ((rc = regcomp(&re, pat, REG_EXTENDED))) {
if ((rc = regcomp(&re, pat, REG_EXTENDED|REG_NOSUB))) {
char error[512];
regerror(rc, &re, error, sizeof(error));