From: Dr. Stephen Henson Date: Sun, 4 Oct 2009 16:52:35 +0000 (+0000) Subject: Fix unitialized warnings X-Git-Tag: OpenSSL_1_0_0-beta4~47 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ad187f89053549cf3fe481ded227e61984fb0b61;p=oweals%2Fopenssl.git Fix unitialized warnings --- 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;