9
0
Fork 0

add argument checking for edit.c

This commit is contained in:
Sascha Hauer 2007-10-04 12:38:40 +02:00
parent 17c3e64578
commit 9cce63fa33
1 changed files with 5 additions and 0 deletions

View File

@ -380,6 +380,11 @@ static int do_edit(cmd_tbl_t * cmdtp, int argc, char *argv[])
int linepos;
char c;
if (argc != 2) {
u_boot_cmd_usage(cmdtp);
return 1;
}
buffer = NULL;
if(edit_read_file(argv[1]))
return 1;