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
84b76e8b
Commit
84b76e8b
authored
Feb 28, 2017
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try to make coverty happy
parent
62d4ce79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
shard_cfg.c
lib/libvmod_directors/shard_cfg.c
+6
-1
No files found.
lib/libvmod_directors/shard_cfg.c
View file @
84b76e8b
...
...
@@ -321,6 +321,9 @@ shardcfg_backend_cmp(const struct shard_backend *a,
ai
=
a
->
ident
;
bi
=
b
->
ident
;
assert
(
ai
||
a
->
backend
);
assert
(
bi
||
b
->
backend
);
/* vcl_names are unique, so we can compare the backend pointers */
if
(
ai
==
NULL
&&
bi
==
NULL
)
return
a
->
backend
!=
b
->
backend
;
...
...
@@ -339,7 +342,9 @@ static int
shardcfg_backend_del_cmp
(
const
struct
shard_backend
*
task
,
const
struct
shard_backend
*
b
)
{
if
(
task
->
backend
&&
task
->
ident
==
NULL
)
assert
(
task
->
backend
||
task
->
ident
);
if
(
task
->
ident
==
NULL
)
return
task
->
backend
!=
b
->
backend
;
return
shardcfg_backend_cmp
(
task
,
b
);
...
...
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