From 0b6f144f1cc40980eded278cec0892078da6657a Mon Sep 17 00:00:00 2001 From: Thomas Fitzsimmons Date: Mon, 1 Apr 2013 13:10:16 -0400 Subject: [PATCH] Don't reference path[1] in warning message if path[0] is NULL --- dbus/dbus-object-tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbus/dbus-object-tree.c b/dbus/dbus-object-tree.c index eba22d14..642d67c3 100644 --- a/dbus/dbus-object-tree.c +++ b/dbus/dbus-object-tree.c @@ -647,7 +647,7 @@ _dbus_object_tree_unregister_and_unlock (DBusObjectTree *tree, { _dbus_warn ("Attempted to unregister path (path[0] = %s path[1] = %s) which isn't registered\n", path[0] ? path[0] : "null", - path[1] ? path[1] : "null"); + (path[0] && path[1]) ? path[1] : "null"); goto unlock; } #else