summaryrefslogtreecommitdiffstats
path: root/crypto/pem
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2006-05-24 13:29:32 +0000
committerDr. Stephen Henson <steve@openssl.org>2006-05-24 13:29:32 +0000
commit0e3453536ec9ce09e4dd276c2fa4d62e362789e9 (patch)
tree38862e1ac0b36c186a5585ff2d20e66ede7265e9 /crypto/pem
parenteaff5a1412011574860a74ff9076838ea1e59dd0 (diff)
Fix warnings.
Diffstat (limited to 'crypto/pem')
-rw-r--r--crypto/pem/pem_info.c2
-rw-r--r--crypto/pem/pvkfmt.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/pem/pem_info.c b/crypto/pem/pem_info.c
index 6e0ad72605..7382b61995 100644
--- a/crypto/pem/pem_info.c
+++ b/crypto/pem/pem_info.c
@@ -99,7 +99,7 @@ STACK_OF(X509_INFO) *PEM_X509_INFO_read_bio(BIO *bp, STACK_OF(X509_INFO) *sk, pe
int ok=0;
STACK_OF(X509_INFO) *ret=NULL;
unsigned int i,raw,ptype;
- d2i_of_void *d2i;
+ d2i_of_void *d2i = 0;
if (sk == NULL)
{
diff --git a/crypto/pem/pvkfmt.c b/crypto/pem/pvkfmt.c
index 31ee365474..58a7f246ef 100644
--- a/crypto/pem/pvkfmt.c
+++ b/crypto/pem/pvkfmt.c
@@ -480,7 +480,7 @@ static void write_dsa(unsigned char **out, DSA *dsa, int ispub);
static int do_i2b(unsigned char **out, EVP_PKEY *pk, int ispub)
{
unsigned char *p;
- unsigned int bitlen, magic, keyalg;
+ unsigned int bitlen, magic = 0, keyalg;
int outlen, noinc = 0;
if (pk->type == EVP_PKEY_DSA)
{