summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2010-06-28 21:16:23 +0200
committerLennart Poettering <lennart@poettering.net>2010-06-28 21:16:23 +0200
commitac84e2a88f37aa778a9ac7be6bbb7b44b431cd57 (patch)
tree8fa473e716bc0d98d9e083495db67661ae0e791d
parentf529a1851a257d9586310f8c8190b2dcd69087a0 (diff)
gobject: avoid assertion when using ga_entry_group_attach() improperly
http://avahi.org/ticket/304
-rw-r--r--avahi-gobject/ga-entry-group.c1
1 files changed, 1 insertions, 0 deletions
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);