From b4963732ef1c1db2d17dbe0e8a6f482ac72f0730 Mon Sep 17 00:00:00 2001 From: ERAMOTO Masaya Date: Fri, 16 Feb 2018 14:51:08 +0900 Subject: [PATCH] client: Not output ad service info if no uuid sets Change-Id: I2f3db46b13b7d33a952993dcc1c1421e01b4ce1c Signed-off-by: Amit Purwar --- client/advertising.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/advertising.c b/client/advertising.c index 1a6ffee..76a154c 100644 --- a/client/advertising.c +++ b/client/advertising.c @@ -546,8 +546,11 @@ void ad_advertise_service(DBusConnection *conn, int argc, char *argv[]) struct ad_data *data; if (argc < 2 || !strlen(argv[1])) { - print_uuid(ad.service.uuid); - bt_shell_hexdump(ad.service.data.data, ad.service.data.len); + if (ad.service.uuid) { + print_uuid(ad.service.uuid); + bt_shell_hexdump(ad.service.data.data, + ad.service.data.len); + } return; } -- 2.7.4