]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd/command.c: relax length check in cmd_get_data_size()
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Wed, 3 Jan 2024 10:47:06 +0000 (11:47 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 16 Jan 2024 22:05:29 +0000 (17:05 -0500)
commit92fa22a1bb1e77e05b20e7caa854101bb15ccfef
treea9fd42e6daf0861a1151d2b601e246996eb035c7
parent48f31ee7427f7e2b87b5b9cf9b86e3b411acf8f0
cmd/command.c: relax length check in cmd_get_data_size()

Just check that the length is at least 2. This allows passing strings
like ".b", which can be convenient when constructing
tests (i.e. parametrizing the suffix used).

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
common/command.c