projects
/
connman
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4705247
)
Make the parent path invalidateable
author
Denis Kenzior
<denis.kenzior@intel.com>
Mon, 11 May 2009 16:49:53 +0000
(11:49 -0500)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 11 May 2009 18:50:38 +0000
(11:50 -0700)
gdbus/object.c
patch
|
blob
|
history
diff --git
a/gdbus/object.c
b/gdbus/object.c
index
2823054
..
3186921
100644
(file)
--- 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;