From: Tanu Kaskinen Date: Sun, 29 Sep 2013 15:49:23 +0000 (+0300) Subject: bluetooth: Fix variable constness X-Git-Url: https://code.delx.au/pulseaudio/commitdiff_plain/38b8c42b357c31d847c6715f20ce28fde9fc62a2 bluetooth: Fix variable constness The string points to memory inside a DBusMessage, so we don't own the string. --- diff --git a/src/modules/bluetooth/bluez5-util.c b/src/modules/bluetooth/bluez5-util.c index 2be15d8d..eaff4b1e 100644 --- a/src/modules/bluetooth/bluez5-util.c +++ b/src/modules/bluetooth/bluez5-util.c @@ -651,7 +651,7 @@ static void parse_adapter_properties(pa_bluetooth_adapter *a, DBusMessageIter *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")) { - char *value; + const char *value; if (is_property_change) { pa_log_warn("Adapter property 'Address' expected to be constant but changed for %s, ignoring", a->path);