projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74cafe8
)
GDBus: Fix obvious crasher when looking up annotations
author
David Zeuthen
<davidz@redhat.com>
Mon, 17 May 2010 23:51:49 +0000
(19:51 -0400)
committer
David 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
patch
|
blob
|
history
diff --git
a/gio/gdbusintrospection.c
b/gio/gdbusintrospection.c
index
c1c4d35
..
c92e307
100644
(file)
--- 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)
{