diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-10-12 20:26:34 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-10-12 20:26:34 +0000 |
commit | 7cc33d9dab6b3116f5599fcb63cf25339f77322e (patch) | |
tree | e121ba9af4be4d619dccee1ad646af81dcb9f515 /avahi-core | |
parent | 5aec154ab298a1ebc3ba22906fde29ef99af7382 (diff) |
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
Diffstat (limited to 'avahi-core')
-rw-r--r-- | avahi-core/server.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |