summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2012-07-03 09:26:27 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2012-07-03 19:02:53 +0100
commite5a945507b045eb46c43da5c0f29a6ee9ab5dbee (patch)
tree420c053830bf6c096b49fefcab9087880e4e3a71
parent4f6d717197d225af36bb7dd191e504c9c6a4dfb8 (diff)
downloaddbus-e5a945507b045eb46c43da5c0f29a6ee9ab5dbee.tar.gz
DBusTransport: do not assert that autolaunch address is non-empty
dbus-launch can apparently return an empty address under certain circumstances, and dbus_parse_address() in the next line will return a nice DBusError for an empty address rather than aborting the process. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=51657 Bug-Debian: http://bugs.debian.org/680027 Reviewed-by: David Zeuthen <davidz@redhat.com>
-rw-r--r--dbus/dbus-transport.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/dbus/dbus-transport.c b/dbus/dbus-transport.c
index ba720f25..6b58fda2 100644
--- a/dbus/dbus-transport.c
+++ b/dbus/dbus-transport.c
@@ -253,7 +253,6 @@ check_address (const char *address, DBusError *error)
int len, i;
_dbus_assert (address != NULL);
- _dbus_assert (*address != '\0');
if (!dbus_parse_address (address, &entries, &len, error))
return NULL; /* not a valid address */