From: KaoruToda Date: Sat, 21 Oct 2017 10:11:39 +0000 (+0900) Subject: Remove duplicate assignment. X-Git-Tag: OpenSSL_1_1_1-pre1~526 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0c1aaa24cc30de8d793f965f4a01863a25773a50;p=oweals%2Fopenssl.git Remove duplicate assignment. Reviewed-by: Tim Hudson Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/4565) --- diff --git a/crypto/asn1/asn_mime.c b/crypto/asn1/asn_mime.c index e0b61eb27f..936c8a5b00 100644 --- a/crypto/asn1/asn_mime.c +++ b/crypto/asn1/asn_mime.c @@ -949,7 +949,7 @@ static int strip_eol(char *linebuf, int *plen, int flags) int len = *plen; char *p, c; int is_eol = 0; - p = linebuf + len - 1; + for (p = linebuf + len - 1; len > 0; len--, p--) { c = *p; if (c == '\n')