]> git.baikalelectronics.ru Git - uboot.git/commit
env: Fix env_get() when returning empty string using env_get_f()
authorMarek Behún <marek.behun@nic.cz>
Wed, 3 Nov 2021 23:23:22 +0000 (00:23 +0100)
committerSimon Glass <sjg@chromium.org>
Sat, 13 Nov 2021 15:16:39 +0000 (08:16 -0700)
commitba12f628461e6a035f2037a2cc26afba20c3e0e9
tree8c9dd382bdcc4d64b507b97f354f5e99f493601a
parent3e0ebab1c1c23109e69540db39626f824f035448
env: Fix env_get() when returning empty string using env_get_f()

The env_get_f() function returns -1 on failure. Returning 0 means that
the variable exists, and is empty string.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Simon Glass <sjg@chromium.org>
env/common.c