Commit 2661d716 authored by Pauli's avatar Pauli
Browse files

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: default avatarRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8611)
parent 64a45882
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {