zeroconf-avahi: eliminate "goto"

This commit is contained in:
Max Kellermann 2013-01-16 00:23:00 +01:00
parent c614e550d9
commit b7cf279d6d
1 changed files with 1 additions and 6 deletions

View File

@ -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)