diff options
Diffstat (limited to 'common/spl/spl_dfu.c')
-rw-r--r-- | common/spl/spl_dfu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/spl/spl_dfu.c b/common/spl/spl_dfu.c index e8d0ba18e6..2c974735b1 100644 --- a/common/spl/spl_dfu.c +++ b/common/spl/spl_dfu.c @@ -40,13 +40,13 @@ int spl_dfu_cmd(int usbctrl, char *dfu_alt_info, char *interface, char *devstr) /* set default environment */ set_default_env(0); - str_env = getenv(dfu_alt_info); + str_env = env_get(dfu_alt_info); if (!str_env) { error("\"dfu_alt_info\" env variable not defined!\n"); return -EINVAL; } - ret = setenv("dfu_alt_info", str_env); + ret = env_set("dfu_alt_info", str_env); if (ret) { error("unable to set env variable \"dfu_alt_info\"!\n"); return -EINVAL; |