summaryrefslogtreecommitdiff
path: root/common/env_nvram.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/env_nvram.c')
-rw-r--r--common/env_nvram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/env_nvram.c b/common/env_nvram.c
index 6e90f2bcb5..544ce4711e 100644
--- a/common/env_nvram.c
+++ b/common/env_nvram.c
@@ -94,7 +94,7 @@ int saveenv(void)
int rcode = 0;
res = (char *)&env_new.data;
- len = hexport('\0', &res, ENV_SIZE);
+ len = hexport_r(&env_htab, '\0', &res, ENV_SIZE);
if (len < 0) {
error("Cannot export environment: errno = %d\n", errno);
return 1;