]> git.sur5r.net Git - u-boot/blobdiff - tools/env/fw_env.c
tools: env: fix config file loading in env library
[u-boot] / tools / env / fw_env.c
index 1420ac58a35fe8ebfbd726b6bc22e26675ba9a7c..06cf63daa4e4e40b2dc9582fb7d22381a7e75eb2 100644 (file)
@@ -1325,6 +1325,9 @@ static int parse_config ()
        struct stat st;
 
 #if defined(CONFIG_FILE)
+       if (!common_args.config_file)
+               common_args.config_file = CONFIG_FILE;
+
        /* Fills in DEVNAME(), ENVSIZE(), DEVESIZE(). Or don't. */
        if (get_config(common_args.config_file)) {
                fprintf(stderr, "Cannot parse config file '%s': %m\n",