summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2016-04-12 22:25:06 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2016-04-12 22:44:02 +0200
commit92aacdcfab378405e33ce957a61dcec5360df682 (patch)
tree75bcc12d16d3aa970aec7dcbcce1b8ec178593a0
parent8c239987e9de1ee8a8c3761a77d88343d721ad4b (diff)
downloadgnutls-92aacdcfab378405e33ce957a61dcec5360df682.tar.gz
gnutls_x509_ext_import_policies: initialize value to avoid compiler warnings
-rw-r--r--lib/x509/x509_ext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/x509_ext.c b/lib/x509/x509_ext.c
index 0933047145..321124a140 100644
--- a/lib/x509/x509_ext.c
+++ b/lib/x509/x509_ext.c
@@ -1895,7 +1895,7 @@ int gnutls_x509_ext_import_policies(const gnutls_datum_t * ext,
policies->policy[j].qualifier[i].type =
GNUTLS_X509_QUALIFIER_URI;
} else if (strcmp(tmpoid, "1.3.6.1.5.5.7.2.2") == 0) {
- gnutls_datum_t txt;
+ gnutls_datum_t txt = {NULL, 0};
snprintf(tmpstr, sizeof(tmpstr),
"?%u.policyQualifiers.?%u.qualifier",