Need to initialize 'usage' and 'critical' since the VIR_DEBUG will
attempt to use them.
---
src/rpc/virnettlscontext.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/rpc/virnettlscontext.c b/src/rpc/virnettlscontext.c
index 3e7e5e0..6665268 100644
--- a/src/rpc/virnettlscontext.c
+++ b/src/rpc/virnettlscontext.c
@@ -217,8 +217,8 @@ static int virNetTLSContextCheckCertKeyUsage(gnutls_x509_crt_t cert,
bool isCA)
{
int status;
- unsigned int usage;
- unsigned int critical;
+ unsigned int usage = 0;
+ unsigned int critical = 0;
status = gnutls_x509_crt_get_key_usage(cert, &usage, &critical);
--
1.7.11.7