GDBus: Fix obvious crasher when looking up annotations
authorDavid Zeuthen <davidz@redhat.com>
Mon, 17 May 2010 23:51:49 +0000 (19:51 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Mon, 17 May 2010 23:52:09 +0000 (19:52 -0400)
Signed-off-by: David Zeuthen <davidz@redhat.com>
gio/gdbusintrospection.c

index c1c4d35..c92e307 100644 (file)
@@ -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)
         {