forked from enlightenment/efl
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
This commit is contained in:
parent
7a407c66db
commit
c3828323c2
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue