diff options
author | Karel Zak | 2011-09-12 16:10:45 +0200 |
---|---|---|
committer | Karel Zak | 2011-09-12 16:10:45 +0200 |
commit | 54a00b5c79c2d98f038c734f66fad54d7392bbe0 (patch) | |
tree | 636f70ced8a827b4eb06851a4e1ec6bd4198790b /misc-utils/blkid.c | |
parent | libmount: previously assumed null pointer [smatch scan] (diff) | |
download | kernel-qcow2-util-linux-54a00b5c79c2d98f038c734f66fad54d7392bbe0.tar.gz kernel-qcow2-util-linux-54a00b5c79c2d98f038c734f66fad54d7392bbe0.tar.xz kernel-qcow2-util-linux-54a00b5c79c2d98f038c734f66fad54d7392bbe0.zip |
blkid: potential null derefence [smatch scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/blkid.c')
-rw-r--r-- | misc-utils/blkid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c index b1fd385bb..a850ac9bd 100644 --- a/misc-utils/blkid.c +++ b/misc-utils/blkid.c @@ -824,10 +824,10 @@ int main(int argc, char **argv) fprintf(stderr, "Failed to allocate device name array\n"); goto exit; } - } - while (optind < argc) - devices[numdev++] = argv[optind++]; + while (optind < argc) + devices[numdev++] = argv[optind++]; + } if (version) { print_version(stdout); |