From: Pauli Date: Fri, 29 Mar 2019 08:27:28 +0000 (+1000) Subject: Correctly zero the DISPLAY_COLUMNS structure. X-Git-Tag: openssl-3.0.0-alpha1~2278 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=79bc34185fdd63f2b1057d1d902697ac1852d245;p=oweals%2Fopenssl.git Correctly zero the DISPLAY_COLUMNS structure. Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/8611) --- diff --git a/apps/openssl.c b/apps/openssl.c index 119d3e8ff6..6bb27853fe 100644 --- a/apps/openssl.c +++ b/apps/openssl.c @@ -715,8 +715,9 @@ static void list_type(FUNC_TYPE ft, int one) { FUNCTION *fp; int i = 0; - DISPLAY_COLUMNS dc = {0}; + DISPLAY_COLUMNS dc; + memset(&dc, 0, sizeof(dc)); if (!one) calculate_columns(&dc);