diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-10-04 16:52:51 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-10-04 16:52:51 +0000 |
commit | 04f9095d9eca142c4d7919ff0954a7352bfcf9bc (patch) | |
tree | 63f9789a32134e510e0ca9aa3d39826115cd53aa | |
parent | 0e039aa7976eb2278339441125473d7219bee413 (diff) |
Fix unitialized warnings
-rw-r--r-- | crypto/asn1/a_mbstr.c | 2 | ||||
-rw-r--r-- | ssl/d1_pkt.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/asn1/a_mbstr.c b/crypto/asn1/a_mbstr.c index 1bcd046893..1538e0a4fc 100644 --- a/crypto/asn1/a_mbstr.c +++ b/crypto/asn1/a_mbstr.c @@ -93,7 +93,7 @@ int ASN1_mbstring_ncopy(ASN1_STRING **out, const unsigned char *in, int len, int str_type; int ret; char free_out; - int outform, outlen; + int outform, outlen = 0; ASN1_STRING *dest; unsigned char *p; int nchar; diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c index 3ee46c4721..c9757e1d63 100644 --- a/ssl/d1_pkt.c +++ b/ssl/d1_pkt.c @@ -534,7 +534,7 @@ int dtls1_get_record(SSL *s) int i,n; SSL3_RECORD *rr; SSL_SESSION *sess; - unsigned char *p; + unsigned char *p = NULL; unsigned short version; DTLS1_BITMAP *bitmap; unsigned int is_next_epoch; |