edbus: fix checking if root objects are our son
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 12 Nov 2012 16:07:12 +0000 (16:07 +0000)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 12 Nov 2012 16:07:12 +0000 (16:07 +0000)
commit9c3b0ac5c30b749e4158014648d85f6b4b3dd23a
tree849a9101f646a54f0b47edc3fd699daad006fea0
parentdf2a2484b2da158c4783900c747e87462521074b
edbus: fix checking if root objects are our son

strncmp'ing is not sufficient because it whould fail in case an object
like "/org/bla" is registered (and in conn->root_objs) and we were
registering "/org/blatest/". We would incorrectly put "/org/bla" as son
of "/org/blatest". Fix this by looking up the next char, checking if
it's a slash.

Also re-format the code a little bit.

SVN revision: 79179
src/lib/edbus_service.c