Commit b7cf279d authored by Max Kellermann's avatar Max Kellermann

zeroconf-avahi: eliminate "goto"

parent c614e550
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment