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:45 -0700 |
commit | 50ff91e20914e05bfc93e880620b2280ddb82e9f (patch) | |
tree | d7cd6e453c80ddea1d360f8436c255b7d41ea73b | |
parent | 6d486b7fe19945f4c01ccf98b40e83345cd78a2d (diff) | |
download | ofono-50ff91e20914e05bfc93e880620b2280ddb82e9f.tar.bz2 |
Make the parent path invalidateable
-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; |