diff options
author | Max Kellermann <max@duempel.org> | 2013-01-16 00:23:00 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-16 00:23:00 +0100 |
commit | b7cf279d6da121d0bb0b274ab9581b697717b5a7 (patch) | |
tree | e030aad0f09e8e6b0f77a2875f8f58910c21dd03 /src/zeroconf-avahi.c | |
parent | c614e550d9752c650e9b9f58d412fdba2f499e28 (diff) | |
download | mpd-b7cf279d6da121d0bb0b274ab9581b697717b5a7.tar.gz mpd-b7cf279d6da121d0bb0b274ab9581b697717b5a7.tar.xz mpd-b7cf279d6da121d0bb0b274ab9581b697717b5a7.zip |
zeroconf-avahi: eliminate "goto"
Diffstat (limited to 'src/zeroconf-avahi.c')
-rw-r--r-- | src/zeroconf-avahi.c | 7 |
1 files changed, 1 insertions, 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) |