From 86cde3187d9acf6f331daff79ff2de87e86c6dc7 Mon Sep 17 00:00:00 2001 From: Pauli Date: Sun, 16 Feb 2020 18:02:38 +1000 Subject: [PATCH] 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) --- crypto/ffc/ffc_params.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.25.1