From: Geoff Thorpe Date: Sun, 26 Aug 2001 21:04:21 +0000 (+0000) Subject: gcc can't spot that 'derlst' is not used uninitialised, so appease it. X-Git-Tag: OpenSSL_0_9_6c~123^2~52 X-Git-Url: https://git.openssl.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=ceff5fec5afcf0f30bc5e1fff26325ed1f33dc47;p=openssl.git gcc can't spot that 'derlst' is not used uninitialised, so appease it. --- diff --git a/crypto/asn1/tasn_enc.c b/crypto/asn1/tasn_enc.c index e1fe3648a3..f6c8ddef0a 100644 --- a/crypto/asn1/tasn_enc.c +++ b/crypto/asn1/tasn_enc.c @@ -309,7 +309,7 @@ static int asn1_set_seq_out(STACK_OF(ASN1_VALUE) *sk, unsigned char **out, int s int i; ASN1_VALUE *skitem; unsigned char *tmpdat = NULL, *p = NULL; - DER_ENC *derlst, *tder; + DER_ENC *derlst = NULL, *tder; if(do_sort) { /* Don't need to sort less than 2 items */ if(sk_ASN1_VALUE_num(sk) < 2) do_sort = 0;