From 67395a3b357d492089e0606e7a5168e48651703d Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Wed, 1 Feb 2023 19:51:47 +0000 Subject: [PATCH] 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. --- profiles/audio/media.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.47.3