From 9082f9021707f17c87ba3dfff67caf593dcb5e67 Mon Sep 17 00:00:00 2001 From: traud Date: Thu, 2 Apr 2020 19:14:41 +0200 Subject: [PATCH] stasis: Avoid always true warnings with clang. ASTERISK-28801 Change-Id: I63ba125226b9fe8a018bd28825c877603eb8f398 --- main/stasis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/stasis.c b/main/stasis.c index ff638bfbf8..c9b71cf116 100644 --- a/main/stasis.c +++ b/main/stasis.c @@ -473,9 +473,9 @@ struct stasis_topic *stasis_topic_create(const char *name) #ifdef AST_DEVMODE topic->statistics = stasis_topic_statistics_create(topic); - if (!topic->name || !topic->statistics || res) + if (ast_strlen_zero(topic->name) || !topic->statistics || res) #else - if (!topic->name || res) + if (ast_strlen_zero(topic->name) || res) #endif { ao2_ref(topic, -1);