Removed unneeded initializers in lm_connection_new
authorMikael Hallendal <micke@imendio.com>
Mon, 20 Oct 2008 17:44:28 +0200
changeset 531 b9e64fde4cbf
parent 530 4b34a9381345
child 532 c917a1900d5c
Removed unneeded initializers in lm_connection_new
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,