stasis: Avoid always true warnings with clang.

ASTERISK-28801

Change-Id: I63ba125226b9fe8a018bd28825c877603eb8f398
13.33
traud 5 years ago committed by Friendly Automation
parent bb974877fa
commit 9082f90217

@ -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);

Loading…
Cancel
Save