From ad187f89053549cf3fe481ded227e61984fb0b61 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sun, 4 Oct 2009 16:52:35 +0000 Subject: [PATCH] Fix unitialized warnings --- crypto/asn1/a_mbstr.c | 2 +- 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; -- 2.25.1