Fix the dbus action group query_action implementation

This commit is contained in:
Matthias Clasen 2011-11-28 18:12:17 -05:00 committed by Ryan Lortie
parent 5002cb2935
commit 7ef3e27255

View File

@ -184,7 +184,7 @@ g_dbus_action_group_query_action (GActionGroup *g_group,
*state_hint = NULL;
if (state)
*state = g_variant_ref (info->state);
*state = info->state ? g_variant_ref (info->state) : NULL;
return TRUE;
}