Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
216f8784
Commit
216f8784
authored
Oct 14, 2014
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor polish
parent
b9e53ea2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cache_vrt_re.c
bin/varnishd/cache/cache_vrt_re.c
+2
-2
No files found.
bin/varnishd/cache/cache_vrt_re.c
View file @
216f8784
...
...
@@ -157,7 +157,7 @@ VRT_regsub(VRT_CTX, int all, const char *str, void *re,
offset
=
ovector
[
1
];
if
(
!
all
)
break
;
memset
(
&
ovector
,
0
,
sizeof
(
ovector
));
memset
(
ovector
,
0
,
sizeof
(
ovector
));
options
|=
VRE_NOTEMPTY
;
i
=
VRE_exec
(
t
,
str
,
len
,
offset
,
options
,
ovector
,
30
,
&
cache_param
->
vre_limits
);
...
...
@@ -170,7 +170,7 @@ VRT_regsub(VRT_CTX, int all, const char *str, void *re,
}
while
(
i
!=
VRE_ERROR_NOMATCH
);
/* Copy suffix to match */
Tadd
(
&
res_b
,
res_e
,
str
+
offset
,
len
-
offset
+
1
);
Tadd
(
&
res_b
,
res_e
,
str
+
offset
,
1
+
len
-
offset
);
if
(
res_b
>=
res_e
)
{
WS_Release
(
ctx
->
ws
,
0
);
return
(
str
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment