]> git.sur5r.net Git - openocd/commit
fix 'nand info' command
authorZachary T Welch <zw@superlucidity.net>
Fri, 27 Nov 2009 17:57:25 +0000 (09:57 -0800)
committerZachary T Welch <zw@superlucidity.net>
Fri, 27 Nov 2009 19:11:26 +0000 (11:11 -0800)
commitf31dfffdef16e640fa0bb881db1ac65ffcd42bf0
tree5520632d1bfb14ffe95ef879c9c8b4dad0e82df7
parent46ed068bacec3c40aa543e78e99b51e30aacf15b
fix 'nand info' command

Move device argument parsing after check for number of arguments;
otherwise, calling this command without any arguments would access
argv[0] before checking whether it even existed.
src/flash/nand.c