cmd: nvedit: propagate envflag to set_default_vars
[oweals/u-boot.git] / env / common.c
index dc8a14f519059f3d44c5d1f30609675be8a781a6..6cf5eddaf65353965c36a8eb0df052df9610c515 100644 (file)
@@ -91,15 +91,16 @@ void set_default_env(const char *s)
 
 
 /* [re]set individual variables to their value in the default environment */
-int set_default_vars(int nvars, char * const vars[])
+int set_default_vars(int nvars, char * const vars[], int flags)
 {
        /*
         * Special use-case: import from default environment
         * (and use \0 as a separator)
         */
+       flags |= H_NOCLEAR | H_INTERACTIVE;
        return himport_r(&env_htab, (const char *)default_environment,
                                sizeof(default_environment), '\0',
-                               H_NOCLEAR | H_INTERACTIVE, 0, nvars, vars);
+                               flags, 0, nvars, vars);
 }
 
 /*