From 2661d716d99fc1dd3240dcdbca6ab73d7b61a72b Mon Sep 17 00:00:00 2001 From: Pauli Date: Fri, 29 Mar 2019 18:19:19 +1000 Subject: [PATCH] It isn't necessary to initialise a struct stat before a stat(2) system call. The initialisation was also flawed, failing to account for padding and alignment bytes. Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/8611) --- crypto/conf/conf_def.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/conf/conf_def.c b/crypto/conf/conf_def.c index 594f7c5e5a..277e4d64c9 100644 --- a/crypto/conf/conf_def.c +++ b/crypto/conf/conf_def.c @@ -669,7 +669,7 @@ static int str_copy(CONF *conf, char *section, char **pto, char *from) static BIO *process_include(char *include, OPENSSL_DIR_CTX **dirctx, char **dirpath) { - struct stat st = { 0 }; + struct stat st; BIO *next; if (stat(include, &st) < 0) { -- 2.25.1