diff options
author | Karel Zak | 2012-02-02 12:49:13 +0100 |
---|---|---|
committer | Karel Zak | 2012-02-02 12:49:13 +0100 |
commit | 15705de0ed7430b78aa85e56aa6b85033c31aae5 (patch) | |
tree | 5831855366a3cf194edbc4247dd7bcf03b4e49a3 /disk-utils/blockdev.c | |
parent | sfdisk: cleanup fd usage (diff) | |
download | kernel-qcow2-util-linux-15705de0ed7430b78aa85e56aa6b85033c31aae5.tar.gz kernel-qcow2-util-linux-15705de0ed7430b78aa85e56aa6b85033c31aae5.tar.xz kernel-qcow2-util-linux-15705de0ed7430b78aa85e56aa6b85033c31aae5.zip |
blockdev: make the code more readable for static analysers
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/blockdev.c')
-rw-r--r-- | disk-utils/blockdev.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/disk-utils/blockdev.c b/disk-utils/blockdev.c index ee926c960..2275f0c58 100644 --- a/disk-utils/blockdev.c +++ b/disk-utils/blockdev.c @@ -281,13 +281,13 @@ int main(int argc, char **argv) static void do_commands(int fd, char **argv, int d) { int res, i, j; - int iarg; - unsigned int uarg; - unsigned short huarg; - long larg; - long long llarg; - unsigned long lu; - unsigned long long llu; + int iarg = 0; + unsigned int uarg = 0; + unsigned short huarg = 0; + long larg = 0; + long long llarg = 0; + unsigned long lu = 0; + unsigned long long llu = 0; int verbose = 0; for (i = 1; i < d; i++) { |