summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2023-02-01 19:51:47 +0000
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-02-01 13:39:40 -0800
commit67395a3b357d492089e0606e7a5168e48651703d (patch)
tree766df715ebd59b0c79eb9efa7ee96284b28b0ed2 /profiles
parentdcbdf5e67f3e4cba29f2fb9f0e5fcdad06540738 (diff)
downloadbluez-67395a3b357d492089e0606e7a5168e48651703d.tar.gz
media: set default value for BAP endpoint Vendor field
The "Vendor" field is optional, and should have an initialized valid default value. It has the default values in register_endpoint, but not in app_register_endpoint, so make the latter match the former.
Diffstat (limited to 'profiles')
-rw-r--r--profiles/audio/media.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/profiles/audio/media.c b/profiles/audio/media.c
index 889cd59b0..505c4b3a6 100644
--- a/profiles/audio/media.c
+++ b/profiles/audio/media.c
@@ -2578,6 +2578,8 @@ static void app_register_endpoint(void *data, void *user_data)
dbus_message_iter_get_basic(&iter, &codec);
+ memset(&vendor, 0, sizeof(vendor));
+
if (g_dbus_proxy_get_property(proxy, "Vendor", &iter)) {
if (dbus_message_iter_get_arg_type(&iter) != DBUS_TYPE_UINT32)
goto fail;