]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: fix possible uninitialized value use [coverity scan]
authorKarel Zak <kzak@redhat.com>
Wed, 15 May 2019 14:15:15 +0000 (16:15 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 15 May 2019 14:15:15 +0000 (16:15 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/devname.c

index 129a349aca7660fe8cfc83eb1087c8d46b966629..014b3f490bf948a563b1931eb429f80a2fb9d794 100644 (file)
@@ -451,7 +451,7 @@ static int probe_all(blkid_cache cache, int only_if_new)
        char line[1024];
        char ptname0[128 + 1], ptname1[128 + 1], *ptname = NULL;
        char *ptnames[2];
-       dev_t devs[2];
+       dev_t devs[2] = { 0, 0 };
        int iswhole[2] = { 0, 0 };
        int ma, mi;
        unsigned long long sz;