From e5a945507b045eb46c43da5c0f29a6ee9ab5dbee Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 3 Jul 2012 09:26:27 +0100 Subject: [PATCH] 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 --- dbus/dbus-transport.c | 1 - 1 file changed, 1 deletion(-) diff --git a/dbus/dbus-transport.c b/dbus/dbus-transport.c index ba720f2..6b58fda 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 */ -- 2.7.4