aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/asn1/a_strex.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2001-04-16 03:00:57 +0000
committerBen Laurie <ben@openssl.org>2001-04-16 03:00:57 +0000
commit4f19a0672ba358fbfa1877c60c1ae02ea35ba1e1 (patch)
tree065753ec4bc864539dc5d2b2dc594ee46a71ad2b /crypto/asn1/a_strex.c
parent854e076df8cbd79a407c7a282ccd0f7fd15ee481 (diff)
downloadopenssl-4f19a0672ba358fbfa1877c60c1ae02ea35ba1e1.tar.gz
Fix warning.
Diffstat (limited to 'crypto/asn1/a_strex.c')
-rw-r--r--crypto/asn1/a_strex.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/asn1/a_strex.c b/crypto/asn1/a_strex.c
index defc4e7ecf..128aa7e772 100644
--- a/crypto/asn1/a_strex.c
+++ b/crypto/asn1/a_strex.c
@@ -461,6 +461,7 @@ static int do_name_ex(char_io *io_ch, void *arg, X509_NAME *n,
int objlen, fld_len;
if((fn_opt == XN_FLAG_FN_OID) || (fn_nid==NID_undef) ) {
OBJ_obj2txt(objtmp, 80, fn, 1);
+ fld_len = 0; /* XXX: what should this be? */
objbuf = objtmp;
} else {
if(fn_opt == XN_FLAG_FN_SN) {
@@ -469,7 +470,10 @@ static int do_name_ex(char_io *io_ch, void *arg, X509_NAME *n,
} else if(fn_opt == XN_FLAG_FN_LN) {
fld_len = FN_WIDTH_LN;
objbuf = OBJ_nid2ln(fn_nid);
- } else objbuf = "";
+ } else {
+ fld_len = 0; /* XXX: what should this be? */
+ objbuf = "";
+ }
}
objlen = strlen(objbuf);
if(!io_ch(arg, objbuf, objlen)) return -1;