grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v18 12/25] key_protector: Add key protectors framework


From: Vladimir 'phcoder' Serbinenko
Subject: Re: [PATCH v18 12/25] key_protector: Add key protectors framework
Date: Fri, 28 Jun 2024 14:54:53 +0300

> +  if (protector == NULL || protector->name == NULL || grub_strlen 
> (protector->name) == 0)
> +    return GRUB_ERR_BAD_ARGUMENT;
> +
Here and in the other places you miss grub_error. Note that the
message in such technical cases should be left untranslated (no N_
mark).

> +  if (protector == NULL || grub_strlen (protector) == 0)

Rather than checking strlen just do protector[0] == '\0'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]