Fix the dbus action group query_action implementation
authorMatthias Clasen <mclasen@redhat.com>
Mon, 28 Nov 2011 23:12:17 +0000 (18:12 -0500)
committerRyan Lortie <desrt@desrt.ca>
Thu, 8 Dec 2011 23:05:13 +0000 (18:05 -0500)
gio/gdbusactiongroup.c

index b0e1116..24c5fad 100644 (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;
 }