diff options
-rw-r--r-- | avahi-daemon/static-services.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/avahi-daemon/static-services.c b/avahi-daemon/static-services.c index d4198c4..c0fbea5 100644 --- a/avahi-daemon/static-services.c +++ b/avahi-daemon/static-services.c @@ -395,7 +395,7 @@ static void XMLCALL xml_end(void *data, const char *el) { int protocol; assert(u->service); - if (u->buf & &strcasecmp (u->buf, "ipv4") == 0) { + if (u->buf && strcasecmp (u->buf, "ipv4") == 0) { protocol = AVAHI_PROTO_INET; } else if (u->buf && strcasecmp (u->buf, "ipv6") == 0) { protocol = AVAHI_PROTO_INET6; |