From: Karel Zak Date: Thu, 2 Feb 2012 11:49:13 +0000 (+0100) Subject: blockdev: make the code more readable for static analysers X-Git-Tag: v2.21-rc2~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=15705de0ed7430b78aa85e56aa6b85033c31aae5;p=thirdparty%2Futil-linux.git blockdev: make the code more readable for static analysers Signed-off-by: Karel Zak --- 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++) {