]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
gnutls_x509_ext_import_policies: initialize value to avoid compiler warnings
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 12 Apr 2016 20:25:06 +0000 (22:25 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 12 Apr 2016 20:44:02 +0000 (22:44 +0200)
lib/x509/x509_ext.c

index 0933047145ab2329d4a58a6bed5502c6843e1e0c..321124a140fe65d7779578528a0dca65330feede 100644 (file)
@@ -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",