]> git.meshlink.io Git - catta/commitdiff
Don't use dbus_message_iter_get_array_len() since it is obsolete
authorLennart Poettering <lennart@poettering.net>
Sun, 31 Dec 2006 16:39:16 +0000 (16:39 +0000)
committerLennart Poettering <lennart@poettering.net>
Sun, 31 Dec 2006 16:39:16 +0000 (16:39 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1357 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-daemon/dbus-util.c

index c9ef949515eed2044c96bb4213f192b70e30b9dd..d1a7a201077e245c61fc1999b944978a70ac3d22 100644 (file)
@@ -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);