Commit a977f032 authored by David Zeuthen's avatar David Zeuthen

GDBus: Fix obvious crasher when looking up annotations

Signed-off-by: default avatarDavid Zeuthen <davidz@redhat.com>
parent 74cafe87
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment