The string points to memory inside a DBusMessage, so we don't own the string.
---
 src/modules/bluetooth/bluez5-util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/bluetooth/bluez5-util.c 
b/src/modules/bluetooth/bluez5-util.c
index 2be15d8..eaff4b1 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);
-- 
1.8.1.2

_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Reply via email to