Whamcloud - gitweb
badblocks: add error checking for command-line arguments for -b and -c
authorTheodore Ts'o <tytso@mit.edu>
Fri, 12 Feb 2021 16:53:23 +0000 (11:53 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 12 Feb 2021 16:53:23 +0000 (11:53 -0500)
commit10f9b11b76514794f0a868676327b8219c655364
tree5e1978b6b9b6d0587784f58bb4d650b3c15f4a9f
parent46fcf7087b557ad3ba18af4996a1cb9ded7c43b5
badblocks: add error checking for command-line arguments for -b and -c

Also remove a dead assignment (the value of try is overwritten after
the continue statement).

Addresses-Coverity-Bug: 1297515
Addresses-Coverity-Bug: 1464573
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/badblocks.c