From: Pauli Date: Sun, 16 Feb 2020 08:02:38 +0000 (+1000) Subject: ffc: use sizeof(*pointer) instead of sizeof(struct) in memset(3) call. X-Git-Tag: openssl-3.0.0-alpha1~451 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=86cde3187d9acf6f331daff79ff2de87e86c6dc7;p=oweals%2Fopenssl.git ffc: use sizeof(*pointer) instead of sizeof(struct) in memset(3) call. Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/11101) --- diff --git a/crypto/ffc/ffc_params.c b/crypto/ffc/ffc_params.c index 0c9d1a5d39..cb8987b64d 100644 --- a/crypto/ffc/ffc_params.c +++ b/crypto/ffc/ffc_params.c @@ -15,7 +15,7 @@ void ffc_params_init(FFC_PARAMS *params) { - memset(params, 0, sizeof(FFC_PARAMS)); + memset(params, 0, sizeof(*params)); params->pcounter = -1; params->gindex = FFC_UNVERIFIABLE_GINDEX; }