common/cmd_mii.c: Add sanity argc check
authorShinya Kuribayashi <shinya.kuribayashi@necel.com>
Thu, 27 Dec 2007 06:39:54 +0000 (15:39 +0900)
committerWolfgang Denk <wd@denx.de>
Wed, 9 Jan 2008 20:36:29 +0000 (21:36 +0100)
commitb9173af73e524d37c812f210173cf83385c5171a
tree6ddb455d29111ffe66833a12bdbaa1038c737559
parent3b93020d74630f0574cbd26d200a82c00dd11eaa
common/cmd_mii.c: Add sanity argc check

If type mii command without arguments, we suffer from uninitialized argv[]
entries; for example we MIPS get stuck by TLB error.

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi@necel.com>
common/cmd_mii.c