diff options
author | Denis Kenzior <denis.kenzior@intel.com> | 2009-05-11 11:49:53 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-05-11 11:50:18 -0700 |
commit | 1f6936fe7c9d16a2e184add8730ce714e8b8eadd (patch) | |
tree | c1b201461979511f70a9929d7b65ff40dc8f48da /gdbus | |
parent | f17f0e3e25a7375e21e14032884ed256c302605e (diff) | |
download | bluez-1f6936fe7c9d16a2e184add8730ce714e8b8eadd.tar.gz |
Make the parent path invalidateable
Diffstat (limited to 'gdbus')
-rw-r--r-- | gdbus/object.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdbus/object.c b/gdbus/object.c index 2823054b..31869218 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; |