[glib] GDBus: Fix obvious crasher when looking up annotations
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GDBus: Fix obvious crasher when looking up annotations
- Date: Mon, 17 May 2010 23:52:57 +0000 (UTC)
commit a977f032358325c8ad558f675530569add68daaf
Author: David Zeuthen <davidz redhat com>
Date: Mon May 17 19:51:49 2010 -0400
GDBus: Fix obvious crasher when looking up annotations
Signed-off-by: David Zeuthen <davidz redhat com>
gio/gdbusintrospection.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gdbusintrospection.c b/gio/gdbusintrospection.c
index c1c4d35..c92e307 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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]