From: Lennart Poettering Date: Sun, 31 Dec 2006 16:39:16 +0000 (+0000) Subject: Don't use dbus_message_iter_get_array_len() since it is obsolete X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=8b792d513254e334b7ead4e47dd3f37b23b06e77;p=catta Don't use dbus_message_iter_get_array_len() since it is obsolete git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1357 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-daemon/dbus-util.c b/avahi-daemon/dbus-util.c index c9ef949..d1a7a20 100644 --- a/avahi-daemon/dbus-util.c +++ b/avahi-daemon/dbus-util.c @@ -341,12 +341,9 @@ int avahi_dbus_read_strlst(DBusMessage *m, int idx, AvahiStringList **l) { dbus_message_iter_recurse(&sub, &sub2); - if (dbus_message_iter_get_array_len(&sub2) > 0) - dbus_message_iter_get_fixed_array(&sub2, &k, &n); - else { - k = (const uint8_t*) ""; - n = 0; - } + k = (const uint8_t*) ""; + n = 0; + dbus_message_iter_get_fixed_array(&sub2, &k, &n); strlst = avahi_string_list_add_arbitrary(strlst, k, n);