From d329bf622e93a4dc3ca92faec1059cd770330cb6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Fri, 16 Nov 2012 13:07:38 +0000 Subject: [PATCH] edbus: Fix search of children objects when path = "/" MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 SVN revision: 79386 --- src/lib/edbus_service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/edbus_service.c b/src/lib/edbus_service.c index b88398b..4299981 100644 --- a/src/lib/edbus_service.c +++ b/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, -- 2.7.4