From: Jes Sorensen <jsorensen@xxxxxx> Signed-off-by: Jes Sorensen <jsorensen@xxxxxx> --- cmd_sign.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd_sign.c b/cmd_sign.c index 57a9250..d699d85 100644 --- a/cmd_sign.c +++ b/cmd_sign.c @@ -147,7 +147,7 @@ int fsverity_cmd_sign(const struct fsverity_command *cmd, goto out_err; } - memset(¶ms, 0, sizeof(struct libfsverity_merkle_tree_params)); + memset(¶ms, 0, sizeof(params)); params.version = 1; params.hash_algorithm = alg_nr; params.block_size = block_size; @@ -162,7 +162,7 @@ int fsverity_cmd_sign(const struct fsverity_command *cmd, digest_size = libfsverity_digest_size(alg_nr); - memset(&sig_params, 0, sizeof(struct libfsverity_signature_params)); + memset(&sig_params, 0, sizeof(sig_params)); sig_params.keyfile = keyfile; sig_params.certfile = certfile; if (libfsverity_sign_digest(digest, &sig_params, &sig, &sig_size)) { -- 2.25.3