From a977f032358325c8ad558f675530569add68daaf Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Mon, 17 May 2010 19:51:49 -0400 Subject: [PATCH] GDBus: Fix obvious crasher when looking up annotations Signed-off-by: David Zeuthen --- gio/gdbusintrospection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gdbusintrospection.c b/gio/gdbusintrospection.c index c1c4d35c2..c92e307fa 100644 --- a/gio/gdbusintrospection.c +++ b/gio/gdbusintrospection.c @@ -1906,7 +1906,7 @@ g_dbus_annotation_info_lookup (const GDBusAnnotationInfo **annotations, const gchar *ret; ret = NULL; - for (n = 0; annotations != NULL && annotations[n]->key != NULL; n++) + for (n = 0; annotations != NULL && annotations[n] != NULL; n++) { if (g_strcmp0 (annotations[n]->key, name) == 0) {