From: Nikos Mavrogiannopoulos Date: Thu, 27 Feb 2014 15:49:24 +0000 (+0100) Subject: Preinitialize values; suggested by Sebastian Krahmer and Tomas Hoger. X-Git-Tag: gnutls_3_3_0pre0~109 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=367faa07495da5ade37d43742a436cceee3a3ce1;p=thirdparty%2Fgnutls.git Preinitialize values; suggested by Sebastian Krahmer and Tomas Hoger. --- diff --git a/lib/x509/verify.c b/lib/x509/verify.c index 4a21c72e67..a8a8e55d1e 100644 --- a/lib/x509/verify.c +++ b/lib/x509/verify.c @@ -118,8 +118,8 @@ check_if_ca(gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer, gnutls_datum_t issuer_signed_data = { NULL, 0 }; gnutls_datum_t cert_signature = { NULL, 0 }; gnutls_datum_t issuer_signature = { NULL, 0 }; - int pathlen, result; - unsigned int ca_status; + int pathlen = -1, result; + unsigned int ca_status = 0; /* Check if the issuer is the same with the * certificate. This is added in order for trusted