[pulseaudio-discuss] [PATCH 2/5] bluetooth: Fix variable constness

João Paulo Rechi Vita jprvita at gmail.com
Tue Oct 1 05:54:01 PDT 2013


On Sun, Sep 29, 2013 at 12:49 PM, Tanu Kaskinen
<tanu.kaskinen at linux.intel.com> wrote:
> 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);

Ack.

-- 
João Paulo Rechi Vita
http://about.me/jprvita


More information about the pulseaudio-discuss mailing list