[empathy/gnome-2-34] Fix use of uninitialized variable
- From: Emilio Pozuelo Monfort <epm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy/gnome-2-34] Fix use of uninitialized variable
- Date: Tue, 22 Mar 2011 17:03:44 +0000 (UTC)
commit 6642163b272bd6a008e2ee412491ad23fe964321
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Tue Mar 22 16:59:26 2011 +0000
Fix use of uninitialized variable
libempathy/empathy-tls-verifier.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libempathy/empathy-tls-verifier.c b/libempathy/empathy-tls-verifier.c
index 7b9c94c..5f81c5a 100644
--- a/libempathy/empathy-tls-verifier.c
+++ b/libempathy/empathy-tls-verifier.c
@@ -232,7 +232,7 @@ real_start_verification (EmpathyTLSVerifier *self)
EmpTLSCertificateRejectReason reason =
EMP_TLS_CERTIFICATE_REJECT_REASON_UNKNOWN;
gint i;
- gboolean matched;
+ gboolean matched = FALSE;
EmpathyTLSVerifierPriv *priv = GET_PRIV (self);
DEBUG ("Starting verification");
@@ -241,7 +241,7 @@ real_start_verification (EmpathyTLSVerifier *self)
first_cert = g_ptr_array_index (priv->cert_chain, 0);
if (priv->reference_identities != NULL)
{
- for (i = 0, matched = FALSE; priv->reference_identities[i] != NULL; ++i)
+ for (i = 0; priv->reference_identities[i] != NULL; ++i)
{
if (gnutls_x509_crt_check_hostname (first_cert,
priv->reference_identities[i]) == 1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]