tools/env: Don't call env_init() in fw_getenv()
We will only call fw_getenv when the env has already been initialized. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
62a34a04e7
commit
d9acae1a88
1 changed files with 0 additions and 3 deletions
3
tools/env/fw_env.c
vendored
3
tools/env/fw_env.c
vendored
|
@ -255,9 +255,6 @@ char *fw_getenv (char *name)
|
|||
{
|
||||
char *env, *nxt;
|
||||
|
||||
if (fw_env_open())
|
||||
return NULL;
|
||||
|
||||
for (env = environment.data; *env; env = nxt + 1) {
|
||||
char *val;
|
||||
|
||||
|
|
Loading…
Reference in a new issue