Emanuele Aina aggiornò:

I've attached a simple patch that skips the assert() if size is 0.

Patch update moving the skipping condition directly in the assert().

--
Buongiorno.
Complimenti per l'ottima scelta.
diff -r e3a91c1e5f63 avahi-common/strlst.c
--- a/avahi-common/strlst.c	Mon May 14 11:26:02 2007 +0200
+++ b/avahi-common/strlst.c	Mon May 21 14:24:03 2007 +0200
@@ -51,7 +51,7 @@ AvahiStringList *avahi_string_list_add_a
 AvahiStringList *avahi_string_list_add_arbitrary(AvahiStringList *l, const uint8_t*text, size_t size) {
     AvahiStringList *n;
 
-    assert(text);
+    assert((size == 0) || text);
 
     if (!(n = avahi_string_list_add_anonymous(l, size)))
         return NULL;
_______________________________________________
avahi mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/avahi

Reply via email to