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
779459ac
Commit
779459ac
authored
Oct 17, 2019
by
Dridi Boukelmoune
Committed by
Poul-Henning Kamp
Oct 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply replace.cocci patch for @fgsch's suggestion
parent
b8ee449f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
mgt_param.c
bin/varnishd/mgt/mgt_param.c
+3
-9
No files found.
bin/varnishd/mgt/mgt_param.c
View file @
779459ac
...
...
@@ -708,21 +708,15 @@ MCF_ParamConf(enum mcf_which_e which, const char * const param,
AZ
(
VSB_finish
(
vsb
));
switch
(
which
)
{
case
MCF_DEFAULT
:
free
(
pp
->
dyn_def
);
pp
->
dyn_def
=
strdup
(
VSB_data
(
vsb
));
AN
(
pp
->
dyn_def
);
REPLACE
(
pp
->
dyn_def
,
VSB_data
(
vsb
));
pp
->
def
=
pp
->
dyn_def
;
break
;
case
MCF_MINIMUM
:
free
(
pp
->
dyn_min
);
pp
->
dyn_min
=
strdup
(
VSB_data
(
vsb
));
AN
(
pp
->
dyn_min
);
REPLACE
(
pp
->
dyn_min
,
VSB_data
(
vsb
));
pp
->
min
=
pp
->
dyn_min
;
break
;
case
MCF_MAXIMUM
:
free
(
pp
->
dyn_max
);
pp
->
dyn_max
=
strdup
(
VSB_data
(
vsb
));
AN
(
pp
->
dyn_max
);
REPLACE
(
pp
->
dyn_max
,
VSB_data
(
vsb
));
pp
->
max
=
pp
->
dyn_max
;
break
;
default:
...
...
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