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:38 -0700 |
commit | fc92cf53abd77d9c31ecb39ec836a9adaeea13e3 (patch) | |
tree | 1a2440fe711fbef54cc9685d6de344550a59175f /gdbus | |
parent | 4705247a2b9671a575b412ff0dc702011d417a22 (diff) | |
download | connman-fc92cf53abd77d9c31ecb39ec836a9adaeea13e3.tar.gz connman-fc92cf53abd77d9c31ecb39ec836a9adaeea13e3.tar.bz2 connman-fc92cf53abd77d9c31ecb39ec836a9adaeea13e3.zip |
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; |