summaryrefslogtreecommitdiffstats
path: root/crypto/x509/x509_att.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2008-02-28 13:18:26 +0000
committerDr. Stephen Henson <steve@openssl.org>2008-02-28 13:18:26 +0000
commita70a49a01871e655a76d108eaa09f0c7fce04c5a (patch)
treefe02d5bc57c71417791920c0d6331744825d7972 /crypto/x509/x509_att.c
parent61b05a00257636bfdea3f08c1e3ea0517f14fea3 (diff)
Fix typo and avoid warning.
Diffstat (limited to 'crypto/x509/x509_att.c')
-rw-r--r--crypto/x509/x509_att.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/x509/x509_att.c b/crypto/x509/x509_att.c
index ef5c2b9a44..c61a047531 100644
--- a/crypto/x509/x509_att.c
+++ b/crypto/x509/x509_att.c
@@ -286,8 +286,8 @@ int X509_ATTRIBUTE_set1_object(X509_ATTRIBUTE *attr, const ASN1_OBJECT *obj)
int X509_ATTRIBUTE_set1_data(X509_ATTRIBUTE *attr, int attrtype, const void *data, int len)
{
ASN1_TYPE *ttmp;
- ASN1_STRING *stmp;
- int atype;
+ ASN1_STRING *stmp = NULL;
+ int atype = 0;
if (!attr) return 0;
if(attrtype & MBSTRING_FLAG) {
stmp = ASN1_STRING_set_by_NID(NULL, data, len, attrtype,