env: allow to export only selected variables
[oweals/u-boot.git] / common / env_mmc.c
index 83f40f43417ef39ca88b6b94e9e03e84924da920..12d647a826de078d4c56c7cb80727feecf620198 100644 (file)
@@ -124,7 +124,7 @@ int saveenv(void)
                return 1;
 
        res = (char *)&env_new.data;
-       len = hexport_r(&env_htab, '\0', &res, ENV_SIZE);
+       len = hexport_r(&env_htab, '\0', &res, ENV_SIZE, 0, NULL);
        if (len < 0) {
                error("Cannot export environment: errno = %d\n", errno);
                return 1;