gnutls: fix an uninitialized variable
authorDan Winship <danw@gnome.org>
Sat, 11 Aug 2012 13:28:16 +0000 (09:28 -0400)
committerDan Winship <danw@gnome.org>
Sat, 11 Aug 2012 13:28:16 +0000 (09:28 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=681636

tls/gnutls/gtlsconnection-gnutls.c

index da6f196..ccdb59c 100644 (file)
@@ -1461,7 +1461,7 @@ g_tls_connection_gnutls_close (GIOStream     *stream,
 {
   GTlsConnectionGnutls *gnutls = G_TLS_CONNECTION_GNUTLS (stream);
   gboolean success;
-  int ret;
+  int ret = 0;
 
   if (!claim_op (gnutls, G_TLS_CONNECTION_GNUTLS_OP_CLOSE,
                 TRUE, cancellable, error))