summaryrefslogtreecommitdiffstats
path: root/avahi-common/strlst.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-11-03 23:36:25 +0000
committerLennart Poettering <lennart@poettering.net>2005-11-03 23:36:25 +0000
commite2f7e83d25a5f0966938163c18b1fd8c399393b1 (patch)
treed1b81ea5fc73aac20078cb2634bbff316e17cd6a /avahi-common/strlst.c
parent00ea7c8f503fd9d1c1c62db837e8f4fb60443117 (diff)
* allow the user to specify a static browse domain list in the configuration file
* remove "drop-root" configuration variable * move the configuration variable "add-service-cookie" from [server] to [publish] * reorder AVAHI_DOMAIN_BROWSER_xx defs git-svn-id: file:///home/lennart/svn/public/avahi/trunk@926 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-common/strlst.c')
-rw-r--r--avahi-common/strlst.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/avahi-common/strlst.c b/avahi-common/strlst.c
index 4b96112..0111870 100644
--- a/avahi-common/strlst.c
+++ b/avahi-common/strlst.c
@@ -299,7 +299,10 @@ AvahiStringList *avahi_string_list_copy(const AvahiStringList *l) {
AvahiStringList *r = NULL;
for (; l; l = l->next)
- r = avahi_string_list_add_arbitrary(r, l->text, l->size);
+ if (!(r = avahi_string_list_add_arbitrary(r, l->text, l->size))) {
+ avahi_string_list_free(r);
+ return NULL;
+ }
return avahi_string_list_reverse(r);
}