# HG changeset patch # User Mikael Hallendal # Date 1224517468 -7200 # Node ID b9e64fde4cbf8f8398da97c9469e48ca50881d45 # Parent 4b34a9381345ba69cd39fc89827978a42ef4ad58 Removed unneeded initializers in lm_connection_new diff -r 4b34a9381345 -r b9e64fde4cbf loudmouth/lm-connection.c --- a/loudmouth/lm-connection.c Tue Oct 14 19:30:30 2008 +0200 +++ b/loudmouth/lm-connection.c Mon Oct 20 17:44:28 2008 +0200 @@ -1246,27 +1246,14 @@ if (server) { connection->server = _lm_utils_hostname_to_punycode (server); - connection->use_srv = FALSE; } else { - connection->server = NULL; connection->use_srv = TRUE; } - connection->context = NULL; connection->port = LM_CONNECTION_DEFAULT_PORT; - connection->jid = NULL; - connection->effective_jid = NULL; - connection->ssl = NULL; - connection->proxy = NULL; - connection->disconnect_cb = NULL; connection->queue = lm_message_queue_new ((LmMessageQueueCallback) connection_message_queue_cb, connection); - connection->cancel_open = FALSE; connection->state = LM_CONNECTION_STATE_CLOSED; - connection->keep_alive_rate = 0; - connection->socket = NULL; - connection->use_sasl = FALSE; - connection->tls_started = FALSE; connection->id_handlers = g_hash_table_new_full (g_str_hash, g_str_equal,