
17 Mar
2009
17 Mar
'09
6:49 p.m.
On Tuesday 17 March 2009 13:10:15 Scott Wood wrote:
--- a/common/cmd_nand.c +++ b/common/cmd_nand.c @@ -502,7 +502,7 @@ static int nand_load_image(cmd_tbl_t *cmdtp, nand_info_t *nand,
s = strchr(cmd, '.'); if (s != NULL &&
(strcmp(s, ".jffs2") && !strcmp(s, ".e") && !strcmp(s, ".i"))) {
(strcmp(s, ".jffs2") && strcmp(s, ".e") && strcmp(s, ".i"))) {
unrelated to the bug in question, but perhaps better written like: if (s++ != NULL && (strcmp(s, "jffs2") && strcmp(s, "e") && strcmp(s, "i"))) { -mike