]> www.infradead.org Git - mtd-utils.git/commit
nandtest: fix --reads argument
authorGuido Martínez <guido@vanguardiasur.com.ar>
Thu, 14 Aug 2014 16:29:45 +0000 (13:29 -0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 8 Sep 2014 10:29:32 +0000 (13:29 +0300)
commitebf0d3d85910f485ebb64b3df2a6e2042a75c807
tree8c88bc9189c78aaa769638c53942a3457876491d
parentb7455d847ab4f9eeeb6a729efc306bfda7bddc99
nandtest: fix --reads argument

The --reads option specifies the argument as optional, but doesn't check
for a null optarg, which means that nandtest segfaults when run as
"nandtest --reads".

Fix this by making the argument required, and changing the help text to
not specify it as optional. Argument -r already specifies the argument
as required, so we fix this inconsistency too.

Signed-off-by: Guido Martínez <guido@vanguardiasur.com.ar>
Acked-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
nandtest.c