diff options
Diffstat (limited to 'x11vnc/avahi.c')
-rw-r--r-- | x11vnc/avahi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/x11vnc/avahi.c b/x11vnc/avahi.c index 5b9882b..5f4e8ba 100644 --- a/x11vnc/avahi.c +++ b/x11vnc/avahi.c @@ -1,6 +1,7 @@ /* -- avahi.c -- */ #include "x11vnc.h" +#include "connections.h" void avahi_initialise(void); void avahi_advertise(const char *name, const char *host, const uint16_t port); @@ -21,6 +22,8 @@ static int try_avahi_helper(const char *name, const char *host, const uint16_t p char *cmd, *p, *path = getenv("PATH"), portstr[32]; int i; + if (!name || !host || !port) {} + /* avahi-publish */ if (no_external_cmds || !cmd_ok("zeroconf")) { return 0; |