Remove unnecessary null initialization.

This commit is contained in:
Daiki Ueno
2011-08-18 11:31:01 +09:00
parent 0e135129e2
commit 6a7b256676
13 changed files with 9 additions and 41 deletions

View File

@ -810,7 +810,7 @@ get_keycode_from_gdk_keymap (EekboardClient *client,
return FALSE;
for (i = 0; i < n_keys; i++)
if (keys[i].group == eekboard_context_get_group (client->context))
if (keys[i].group == eekboard_context_get_group (client->context, NULL))
best_match = &keys[i];
*keycode = best_match->keycode;

View File

@ -231,19 +231,16 @@ server_server_init (ServerServer *server)
{
GError *error;
server->connection = NULL;
error = NULL;
server->introspection_data =
g_dbus_node_info_new_for_xml (introspection_xml, &error);
g_assert (server->introspection_data != NULL);
server->registration_id = 0;
server->context_hash =
g_hash_table_new_full (g_str_hash,
g_str_equal,
(GDestroyNotify)g_free,
(GDestroyNotify)g_object_unref);
server->context_stack = NULL;
}
static void