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
ff573493
Unverified
Commit
ff573493
authored
Jan 16, 2021
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vmod_debug: add assertions on methods ptr
parent
dbd35b95
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
vmod_debug.c
vmod/vmod_debug.c
+3
-0
No files found.
vmod/vmod_debug.c
View file @
ff573493
...
@@ -260,6 +260,7 @@ xyzzy_test_priv_call(VRT_CTX, struct vmod_priv *priv)
...
@@ -260,6 +260,7 @@ xyzzy_test_priv_call(VRT_CTX, struct vmod_priv *priv)
priv
->
priv
=
strdup
(
"BAR"
);
priv
->
priv
=
strdup
(
"BAR"
);
priv
->
methods
=
xyzzy_test_priv_call_methods
;
priv
->
methods
=
xyzzy_test_priv_call_methods
;
}
else
{
}
else
{
assert
(
priv
->
methods
==
xyzzy_test_priv_call_methods
);
assert
(
!
strcmp
(
priv
->
priv
,
"BAR"
));
assert
(
!
strcmp
(
priv
->
priv
,
"BAR"
));
}
}
}
}
...
@@ -309,6 +310,8 @@ xyzzy_test_priv_top(VRT_CTX, struct vmod_priv *priv, VCL_STRING s)
...
@@ -309,6 +310,8 @@ xyzzy_test_priv_top(VRT_CTX, struct vmod_priv *priv, VCL_STRING s)
if
(
priv
->
priv
==
NULL
)
{
if
(
priv
->
priv
==
NULL
)
{
priv
->
priv
=
strdup
(
s
);
priv
->
priv
=
strdup
(
s
);
priv
->
methods
=
xyzzy_test_priv_top_methods
;
priv
->
methods
=
xyzzy_test_priv_top_methods
;
}
else
{
assert
(
priv
->
methods
==
xyzzy_test_priv_top_methods
);
}
}
return
(
priv
->
priv
);
return
(
priv
->
priv
);
}
}
...
...
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