[Telepathy-commits] [telepathy-idle/master] Initialize a couple more GErrors to NULL

Jonathon Jongsma jonathon.jongsma at collabora.co.uk
Tue Jan 13 09:32:17 PST 2009


Missed a couple uninitialized GErrors in the ssl connection class
---
 src/idle-ssl-server-connection.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/idle-ssl-server-connection.c b/src/idle-ssl-server-connection.c
index d10d4d8..046ece2 100644
--- a/src/idle-ssl-server-connection.c
+++ b/src/idle-ssl-server-connection.c
@@ -307,7 +307,7 @@ static gboolean iface_ssl_disconnect_impl_full(IdleServerConnectionIface *iface,
 
 static gboolean ssl_io_err_cleanup_func(gpointer user_data) {
 	IdleServerConnectionIface *iface = IDLE_SERVER_CONNECTION_IFACE(user_data);
-	GError *error;
+	GError *error = NULL;
 
 	if (!iface_ssl_disconnect_impl_full(iface, SERVER_CONNECTION_STATE_REASON_ERROR, &error)) {
 		IDLE_DEBUG("disconnect: %s", error->message);
@@ -623,7 +623,7 @@ static gboolean iface_ssl_send_impl(IdleServerConnectionIface *iface, const gcha
 	rc = SSL_write(priv->ssl, cmd, len);
 
 	if (rc <= 0) {
-		GError *local_error;
+		GError *local_error = NULL;
 
 		IDLE_DEBUG("SSL_write failed with status %i (error %i)", rc, SSL_get_error(priv->ssl, rc));
 
-- 
1.5.6.5



More information about the Telepathy-commits mailing list