Diff between 546ec13c0df3ecbd60e66213f4aef49f8f39dfeb and a8b1be8f829a1fc4a73c91d350615f3e416fdcec

Changed Files

File Additions Deletions Status
profiles/network/connection.c +2 -1 modified

Full Patch

diff --git a/profiles/network/connection.c b/profiles/network/connection.c
index 77e0a34..5305ace 100644
--- a/profiles/network/connection.c
+++ b/profiles/network/connection.c
@@ -440,6 +440,7 @@ static gboolean network_property_get_uuid(const GDBusPropertyTable *property,
 	struct network_peer *peer = data;
 	struct network_conn *nc;
 	char uuid_str[MAX_LEN_UUID_STR];
+	const char *uuid = uuid_str;
 	bt_uuid_t uuid16, uuid128;
 
 	nc = find_connection_by_state(peer->connections, CONNECTED);
@@ -450,7 +451,7 @@ static gboolean network_property_get_uuid(const GDBusPropertyTable *property,
 	bt_uuid_to_uuid128(&uuid16, &uuid128);
 	bt_uuid_to_string(&uuid128, uuid_str, MAX_LEN_UUID_STR);
 
-	dbus_message_iter_append_basic(iter, DBUS_TYPE_STRING, &uuid_str);
+	dbus_message_iter_append_basic(iter, DBUS_TYPE_STRING, &uuid);
 
 	return TRUE;
 }