]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
test_stasis: Avoid always true warning with clang.
authortraud <pabstraud@compuserve.com>
Mon, 6 Apr 2020 11:56:39 +0000 (13:56 +0200)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Wed, 8 Apr 2020 00:04:42 +0000 (19:04 -0500)
ASTERISK-28808

Change-Id: I5e76831373532d7b8065d024e66cd1fb75dedd80

tests/test_stasis.c

index e620039edded240c72cced0750f8001c690fbaac..08c3d1e0f38d46cb3cf2f4431fcd21df28dbfd99 100644 (file)
@@ -2201,7 +2201,7 @@ static void dump_consumer(struct ast_test *test, struct cts *cts)
                data = stasis_message_data(cts->consumer->messages_rxed[i]);
                ast_test_status_update(test, "Message type received: %s %s\n",
                        stasis_message_type_name(stasis_message_type(cts->consumer->messages_rxed[i])),
-                       data && data->description ? data->description : "no data");
+                       data && !ast_strlen_zero(data->description) ? data->description : "no data");
        }
 }