Commit 84b76e8b authored by Nils Goroll's avatar Nils Goroll

try to make coverty happy

parent 62d4ce79
......@@ -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);
......
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