diff options
Diffstat (limited to 'cmd/jffs2.c')
-rw-r--r-- | cmd/jffs2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/jffs2.c b/cmd/jffs2.c index add89dee6a..aee2f4513d 100644 --- a/cmd/jffs2.c +++ b/cmd/jffs2.c @@ -479,9 +479,9 @@ int do_jffs2_fsload(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) ulong offset = load_addr; /* pre-set Boot file name */ - if ((filename = getenv("bootfile")) == NULL) { + filename = env_get("bootfile"); + if (!filename) filename = "uImage"; - } if (argc == 2) { filename = argv[1]; |