client: Not output ad service info if no uuid sets 07/204907/1
authorERAMOTO Masaya <eramoto.masaya@jp.fujitsu.com>
Fri, 16 Feb 2018 05:51:08 +0000 (14:51 +0900)
committerAmit Purwar <amit.purwar@samsung.com>
Mon, 15 Apr 2019 03:28:38 +0000 (08:58 +0530)
Change-Id: I2f3db46b13b7d33a952993dcc1c1421e01b4ce1c
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
client/advertising.c

index 1a6ffee..76a154c 100644 (file)
@@ -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;
        }