From: Lennart Poettering Date: Mon, 24 Apr 2006 00:18:41 +0000 (+0000) Subject: * don't call dbus_connection_get_is_connected() for a NULL dbus connection (closes... X-Git-Tag: upstream/0.6.31~626 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f458280b1aa97dbfcbf51cab006058b44c848654;p=platform%2Fupstream%2Favahi.git * don't call dbus_connection_get_is_connected() for a NULL dbus connection (closes #26) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1193 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-client/client.c b/avahi-client/client.c index 4ee8e41..90686fc 100644 --- a/avahi-client/client.c +++ b/avahi-client/client.c @@ -863,6 +863,7 @@ int avahi_client_is_connected(AvahiClient *client) { assert(client); return + client->bus && dbus_connection_get_is_connected(client->bus) && (client->state == AVAHI_CLIENT_S_RUNNING || client->state == AVAHI_CLIENT_S_REGISTERING || client->state == AVAHI_CLIENT_S_COLLISION); }