From: Lennart Poettering Date: Wed, 12 Oct 2005 20:26:34 +0000 (+0000) Subject: small fix to allow creating server instances without passing a configuration structure X-Git-Tag: upstream/0.6.31~1063 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7cc33d9dab6b3116f5599fcb63cf25339f77322e;p=platform%2Fupstream%2Favahi.git 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 --- 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;