Commit 3063979c authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Improve portability: Since all log strings are NUL terminated we do not

need to use REG_STARTEND any more.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@989 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent d441b165
......@@ -243,14 +243,14 @@ VSL_NextLog(struct VSL_data *vd, unsigned char **pp)
if (vd->regincl != NULL) {
rm.rm_so = 0;
rm.rm_eo = p[1];
i = regexec(vd->regincl, p + 4, 1, &rm, REG_STARTEND);
i = regexec(vd->regincl, p + 4, 1, &rm, 0);
if (i == REG_NOMATCH)
continue;
}
if (vd->regexcl != NULL) {
rm.rm_so = 0;
rm.rm_eo = p[1];
i = regexec(vd->regexcl, p + 4, 1, &rm, REG_STARTEND);
i = regexec(vd->regexcl, p + 4, 1, &rm, 0);
if (i != REG_NOMATCH)
continue;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment