diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-03-23 00:59:26 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-03-23 00:59:26 +0800 |
commit | 6642163b272bd6a008e2ee412491ad23fe964321 (patch) | |
tree | e373bb38a027961c534c48c4f49347a9f8271eeb /libempathy | |
parent | 8e416d8de3b381a7d869e463125fc938d43820bb (diff) | |
download | gsoc2013-empathy-6642163b272bd6a008e2ee412491ad23fe964321.tar gsoc2013-empathy-6642163b272bd6a008e2ee412491ad23fe964321.tar.gz gsoc2013-empathy-6642163b272bd6a008e2ee412491ad23fe964321.tar.bz2 gsoc2013-empathy-6642163b272bd6a008e2ee412491ad23fe964321.tar.lz gsoc2013-empathy-6642163b272bd6a008e2ee412491ad23fe964321.tar.xz gsoc2013-empathy-6642163b272bd6a008e2ee412491ad23fe964321.tar.zst gsoc2013-empathy-6642163b272bd6a008e2ee412491ad23fe964321.zip |
Fix use of uninitialized variable
Diffstat (limited to 'libempathy')
-rw-r--r-- | 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 7b9c94c94..5f81c5ac6 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) |