From fc92cf53abd77d9c31ecb39ec836a9adaeea13e3 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 11 May 2009 11:49:53 -0500 Subject: [PATCH] Make the parent path invalidateable --- gdbus/object.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gdbus/object.c b/gdbus/object.c index 2823054..3186921 100644 --- a/gdbus/object.c +++ b/gdbus/object.c @@ -307,7 +307,11 @@ static void invalidate_parent_data(DBusConnection *conn, const char *child_path) if (!slash) goto done; - *slash = '\0'; + if (slash == parent_path && parent_path[1] != '\0') + parent_path[1] = '\0'; + else + *slash = '\0'; + if (!strlen(parent_path)) goto done; -- 1.7.9.5