]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Don't reference path[1] in warning message if path[0] is NULL
authorThomas Fitzsimmons <fitzsim@cisco.com>
Mon, 1 Apr 2013 17:10:16 +0000 (13:10 -0400)
committerThomas Fitzsimmons <fitzsim@cisco.com>
Mon, 1 Apr 2013 17:10:16 +0000 (13:10 -0400)
dbus/dbus-object-tree.c

index eba22d1431e9ff03fbb1dd5dfc730627301407c0..642d67c3003515d1f75f0b23d6280adb3dac1d90 100644 (file)
@@ -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