[glib-networking] gnutls: fix an uninitialized variable
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking] gnutls: fix an uninitialized variable
- Date: Wed, 8 Dec 2010 15:40:39 +0000 (UTC)
commit 23592af1629ecfe8c401925eadc99e5796a70e98
Author: Dan Winship <danw gnome org>
Date: Wed Dec 8 16:39:03 2010 +0100
gnutls: fix an uninitialized variable
tls/gnutls/gtlsconnection-gnutls.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/tls/gnutls/gtlsconnection-gnutls.c b/tls/gnutls/gtlsconnection-gnutls.c
index 6239890..62010ff 100644
--- a/tls/gnutls/gtlsconnection-gnutls.c
+++ b/tls/gnutls/gtlsconnection-gnutls.c
@@ -786,8 +786,8 @@ handshake_internal (GTlsConnectionGnutls *gnutls,
GCancellable *cancellable,
GError **error)
{
- GTlsCertificate *peer_certificate;
- GTlsCertificateFlags peer_certificate_errors;
+ GTlsCertificate *peer_certificate = NULL;
+ GTlsCertificateFlags peer_certificate_errors = 0;
int ret;
if (G_IS_TLS_SERVER_CONNECTION_GNUTLS (gnutls) &&
@@ -851,8 +851,6 @@ handshake_internal (GTlsConnectionGnutls *gnutls,
peer_certificate = chain;
}
- else
- peer_certificate = NULL;
if (peer_certificate)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]