]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
blockdev: make the code more readable for static analysers
authorKarel Zak <kzak@redhat.com>
Thu, 2 Feb 2012 11:49:13 +0000 (12:49 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 2 Feb 2012 11:49:13 +0000 (12:49 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/blockdev.c

index ee926c960d02113cf54dd7e8037c6e9fab74a6a1..2275f0c58fe785a89d3bb3ec488e25fab365b153 100644 (file)
@@ -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++) {