From 7cc33d9dab6b3116f5599fcb63cf25339f77322e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 12 Oct 2005 20:26:34 +0000 Subject: [PATCH] small fix to allow creating server instances without passing a configuration structure git-svn-id: file:///home/lennart/svn/public/avahi/trunk@741 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-core/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avahi-core/server.c b/avahi-core/server.c index 7764635..9046ec4 100644 --- a/avahi-core/server.c +++ b/avahi-core/server.c @@ -1360,7 +1360,7 @@ AvahiServer *avahi_server_new(const AvahiPoll *poll_api, const AvahiServerConfig AvahiServer *s; int e; - if ((e = valid_server_config(sc)) < 0) { + if (sc && (e = valid_server_config(sc)) < 0) { if (error) *error = e; return NULL; -- 2.7.4