aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Roberto de Souza <zehortigoza@profusion.mobi>2012-11-16 13:07:38 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2012-11-16 13:07:38 +0000
commitc3828323c28d2c84ab16c76c715756fe128401ea (patch)
tree381cb1b28df7d6eb319d119cc0ede5d633875cfe
parentedbus: Fix segfault in edbus_message_to_eina_value() when message have no args (diff)
downloadefl-c3828323c28d2c84ab16c76c715756fe128401ea.tar.gz
edbus: Fix search of children objects when path = "/"
Example: there's an object in "/org/bla" and we are adding an object in "/". Thus the second should becaome the parent of the first, which was a root object since it had no parent yet. Patch by: José Roberto de Souza <zehortigoza@profusion.mobi> SVN revision: 79386
-rw-r--r--legacy/edbus/src/lib/edbus_service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/legacy/edbus/src/lib/edbus_service.c b/legacy/edbus/src/lib/edbus_service.c
index b88398bebf..4299981148 100644
--- a/legacy/edbus/src/lib/edbus_service.c
+++ b/legacy/edbus/src/lib/edbus_service.c
@@ -684,7 +684,7 @@ _edbus_service_object_add(EDBus_Connection *conn, const char *path)
if (strncmp(obj->path, rootobj->path, pathlen) != 0)
continue;
- if (rootobj->path[pathlen] != '/')
+ if (rootobj->path[pathlen] != '/' && pathlen > 1)
continue;
conn->root_objs = eina_inlist_remove(conn->root_objs,