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 119d3e8..6bb2785 100644 (file)
@@ -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);