> -     if (session->append_all == TRUE ||
> -                     info->entry != info_last->entry) {
> -             if (info->entry == NULL) {
> -                     name = "";
> -                     ifname = "";
> -                     service = NULL;
> -                     bearer = "";
> -             } else {
> -                     name = info->entry->name;
> -                     ifname = info->entry->ifname;
> -                     service = info->entry->service;
> -                     bearer = info->entry->bearer;
> -             }
> -
> +     if ((session->append_all == TRUE || info->entry != info_last->entry) &&
> +                     info->entry != NULL) {
>               connman_dbus_dict_append_basic(dict, "Name",
>                                               DBUS_TYPE_STRING,
> -                                             &name);
> +                                             &info->entry->name);

I had to add this snippet, because I was able to end up here with
info->entry == NULL. Maybe your changes later down fixes this problem.

cheers,
daniel
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to