Skip to content

Commit

Permalink
i386/txt/txt.c: fix size of zeroed structure
Browse files Browse the repository at this point in the history
Signed-off-by: Krystian Hebel <[email protected]>
  • Loading branch information
krystian-hebel committed Feb 20, 2024
1 parent f3901ac commit 9dc582a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grub-core/loader/i386/txt/txt.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ grub_txt_smx_parameters (struct grub_smx_parameters *params)
{
grub_uint32_t index = 0, eax, ebx, ecx, param_type;

grub_memset (params, 0, sizeof(struct grub_smx_supported_versions));
grub_memset (params, 0, sizeof(*params));

params->max_acm_size = GRUB_SMX_DEFAULT_MAX_ACM_SIZE;
params->acm_memory_types = GRUB_SMX_DEFAULT_ACM_MEMORY_TYPE;
Expand Down

0 comments on commit 9dc582a

Please sign in to comment.