From ef35e7c6bd4160c354d8e07c5d5522415260892b Mon Sep 17 00:00:00 2001 From: Chengwei Yang Date: Thu, 15 Aug 2013 15:59:37 +0800 Subject: [PATCH 10/10] Align behavior with document --- dbus/dbus-address.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbus/dbus-address.c b/dbus/dbus-address.c index c4cfbbe..b49bac4 100644 --- a/dbus/dbus-address.c +++ b/dbus/dbus-address.c @@ -67,7 +67,7 @@ _dbus_set_bad_address (DBusError *error, const char *address_problem_field, const char *address_problem_other) { - if (address_problem_type != NULL) + if (address_problem_type != NULL && address_problem_field != NULL) dbus_set_error (error, DBUS_ERROR_BAD_ADDRESS, "Server address of type %s was missing argument %s", address_problem_type, address_problem_field); -- 1.7.9.5