[PATCH 05/10] env: Check for terminating null-byte in env_match()
Marek Behún
marek.behun at nic.cz
Wed Oct 13 17:35:09 CEST 2021
On Tue, 12 Oct 2021 13:04:56 +0200
Marek Behún <kabel at kernel.org> wrote:
> - while (*s1 == env_get_char(i2++))
> + while (*s1 != '\0' && *s1 == env_get_char(i2++))
This check has to be done in the other order:
while (*s1 == env_get_char(i2++) && *s1 != '\0')
so that i2 gets incremented even if *s1 == '\0'.
Will be fixed in v2.
More information about the U-Boot
mailing list