From b7cf279d6da121d0bb0b274ab9581b697717b5a7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 16 Jan 2013 00:23:00 +0100 Subject: [PATCH] zeroconf-avahi: eliminate "goto" --- src/zeroconf-avahi.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/zeroconf-avahi.c b/src/zeroconf-avahi.c index 1f93ddb72..d2c6c084c 100644 --- a/src/zeroconf-avahi.c +++ b/src/zeroconf-avahi.c @@ -234,13 +234,8 @@ void init_avahi(const char *serviceName) if (!avahiClient) { g_warning("Failed to create client: %s", avahi_strerror(error)); - goto fail; + avahi_finish(); } - - return; - -fail: - avahi_finish(); } void avahi_finish(void)