OSDN Git Service

blkid: suppress Coverity warning
authorTheodore Ts'o <tytso@mit.edu>
Thu, 30 Jan 2014 23:02:37 +0000 (18:02 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 30 Jan 2014 23:25:15 +0000 (18:25 -0500)
commite5397d7ae9d87388201c16d25e0615bd2180cb3f
tree20d89f2baaab6e9cee10ac0dc9c83f37a4e344d3
parent9b36ce0e195c5ba7bb03dd8baceacc5dfa7a4c20
blkid: suppress Coverity warning

The getopt() function will never let optarg be NULL (at least without
using the GNU double-colon extension, which we don't use because it's
not portable), so don't bother checking for that case.  It's harmless,
but it triggers a Coverity warning elsewhere, since it thinks optarg
could in fact be NULL.

Addresses-Coverity-Id: #1049156

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/blkid.c