mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
bluetooth: Fix variable constness
The string points to memory inside a DBusMessage, so we don't own the string.
This commit is contained in:
parent
c922dce784
commit
38b8c42b35
1 changed files with 1 additions and 1 deletions
|
|
@ -651,7 +651,7 @@ static void parse_adapter_properties(pa_bluetooth_adapter *a, DBusMessageIter *i
|
||||||
dbus_message_iter_recurse(&dict_i, &variant_i);
|
dbus_message_iter_recurse(&dict_i, &variant_i);
|
||||||
|
|
||||||
if (dbus_message_iter_get_arg_type(&variant_i) == DBUS_TYPE_STRING && pa_streq(key, "Address")) {
|
if (dbus_message_iter_get_arg_type(&variant_i) == DBUS_TYPE_STRING && pa_streq(key, "Address")) {
|
||||||
char *value;
|
const char *value;
|
||||||
|
|
||||||
if (is_property_change) {
|
if (is_property_change) {
|
||||||
pa_log_warn("Adapter property 'Address' expected to be constant but changed for %s, ignoring", a->path);
|
pa_log_warn("Adapter property 'Address' expected to be constant but changed for %s, ignoring", a->path);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue