mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 04:56:14 +01:00
GDBus: Fix obvious crasher when looking up annotations
Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
parent
74cafe871c
commit
a977f03235
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user