diff options
Diffstat (limited to 'env/env.c')
-rw-r--r-- | env/env.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/env/env.c b/env/env.c index 1255d57f48d..43290d08321 100644 --- a/env/env.c +++ b/env/env.c @@ -74,7 +74,7 @@ int env_get_char(int index) struct env_driver *drv = env_driver_lookup_default(); int ret; - if (!gd->env_valid) + if (gd->env_valid == ENV_INVALID) return default_environment[index]; if (!drv) return -ENODEV; |