From: Sjoerd Simons Date: Mon, 28 Jun 2010 19:16:23 +0000 (+0200) Subject: gobject: avoid assertion when using ga_entry_group_attach() improperly X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=ac84e2a88f37aa778a9ac7be6bbb7b44b431cd57;p=catta gobject: avoid assertion when using ga_entry_group_attach() improperly http://avahi.org/ticket/304 --- diff --git a/avahi-gobject/ga-entry-group.c b/avahi-gobject/ga-entry-group.c index 0f0ab74..23e8ec3 100644 --- a/avahi-gobject/ga-entry-group.c +++ b/avahi-gobject/ga-entry-group.c @@ -574,6 +574,7 @@ gboolean ga_entry_group_attach(GaEntryGroup * group, GaClient * client, GError ** error) { GaEntryGroupPrivate *priv = GA_ENTRY_GROUP_GET_PRIVATE(group); + g_return_val_if_fail(client->avahi_client, FALSE); g_assert(priv->client == NULL || priv->client == client); g_assert(priv->group == NULL);