GDBus: Fix introspection of objects registered at /

Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
David Zeuthen 2010-05-17 11:07:53 -04:00
parent 799e0242ae
commit 98e4f7f6fb

View File

@ -3583,7 +3583,7 @@ introspect_append_standard_interfaces (GString *s)
static void static void
maybe_add_path (const gchar *path, gsize path_len, const gchar *object_path, GHashTable *set) maybe_add_path (const gchar *path, gsize path_len, const gchar *object_path, GHashTable *set)
{ {
if (g_str_has_prefix (object_path, path) && strlen (object_path) >= path_len) if (g_str_has_prefix (object_path, path) && strlen (object_path) > path_len)
{ {
const gchar *begin; const gchar *begin;
const gchar *end; const gchar *end;