summaryrefslogtreecommitdiff
path: root/legacy/edbus/src/lib
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 /legacy/edbus/src/lib
parent7a407c66dbf06a817a78f255bfb4238d1917bbfa (diff)
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
Diffstat (limited to 'legacy/edbus/src/lib')
-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)
684 if (strncmp(obj->path, rootobj->path, pathlen) != 0) 684 if (strncmp(obj->path, rootobj->path, pathlen) != 0)
685 continue; 685 continue;
686 686
687 if (rootobj->path[pathlen] != '/') 687 if (rootobj->path[pathlen] != '/' && pathlen > 1)
688 continue; 688 continue;
689 689
690 conn->root_objs = eina_inlist_remove(conn->root_objs, 690 conn->root_objs = eina_inlist_remove(conn->root_objs,