From 15705de0ed7430b78aa85e56aa6b85033c31aae5 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 2 Feb 2012 12:49:13 +0100 Subject: [PATCH] blockdev: make the code more readable for static analysers Signed-off-by: Karel Zak --- disk-utils/blockdev.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/disk-utils/blockdev.c b/disk-utils/blockdev.c index ee926c960d..2275f0c58f 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++) { -- 2.47.3