]> git.meshlink.io Git - catta/commitdiff
small fix to allow creating server instances without passing a configuration structure
authorLennart Poettering <lennart@poettering.net>
Wed, 12 Oct 2005 20:26:34 +0000 (20:26 +0000)
committerLennart Poettering <lennart@poettering.net>
Wed, 12 Oct 2005 20:26:34 +0000 (20:26 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@741 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-core/server.c

index 77646359b198af8bd36ce4a851a235de72d1fc49..9046ec4c842474bd0a4dec3f0d7b92dd6c1922f4 100644 (file)
@@ -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;