summaryrefslogtreecommitdiff
path: root/env/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'env/env.c')
-rw-r--r--env/env.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/env/env.c b/env/env.c
index caefa33e1d..e534008006 100644
--- a/env/env.c
+++ b/env/env.c
@@ -335,6 +335,9 @@ int env_init(void)
debug("%s: Environment %s init done (ret=%d)\n", __func__,
drv->name, ret);
+
+ if (gd->env_valid == ENV_INVALID)
+ ret = -ENOENT;
}
if (!prio)