Correctly zero the DISPLAY_COLUMNS structure.
authorPauli <paul.dale@oracle.com>
Fri, 29 Mar 2019 08:27:28 +0000 (18:27 +1000)
committerPauli <paul.dale@oracle.com>
Fri, 29 Mar 2019 10:52:00 +0000 (20:52 +1000)
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8611)

apps/openssl.c

index 119d3e8ff679622df8726b5fdd4ec7ed3754cc08..6bb27853fe6fc85b2946e06cb9fe6a5b7d400a00 100644 (file)
@@ -715,8 +715,9 @@ static void list_type(FUNC_TYPE ft, int one)
 {
     FUNCTION *fp;
     int i = 0;
 {
     FUNCTION *fp;
     int i = 0;
-    DISPLAY_COLUMNS dc = {0};
+    DISPLAY_COLUMNS dc;
 
 
+    memset(&dc, 0, sizeof(dc));
     if (!one)
         calculate_columns(&dc);
 
     if (!one)
         calculate_columns(&dc);