From da1e7a2c6aef56965785d2fb6d025834186cb378 Mon Sep 17 00:00:00 2001
From: Fabian Keil <fk@fabiankeil.de>
Date: Sun, 8 May 2016 10:46:05 +0000
Subject: [PATCH] remove_tag_for_client(): Silence a coverity warning (CID
 #161202)

---
 client-tags.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/client-tags.c b/client-tags.c
index 54c47048..0bcbf353 100644
--- a/client-tags.c
+++ b/client-tags.c
@@ -365,6 +365,13 @@ static void remove_tag_for_client(const char *client_address, const char *tag)
       clients_with_tags = clients_with_tags->next;
    }
 
+   assert(clients_with_tags != NULL);
+   if (clients_with_tags == NULL)
+   {
+      log_error(LOG_LEVEL_ERROR,
+         "Tried to remove tag %s for tag-less client %s",
+         tag, client_address);
+   }
    enabled_tags = clients_with_tags->tags;
    while (enabled_tags != NULL)
    {
-- 
2.49.0