libblkid: fix possible uninitialized value use [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2019-05-15 16:15:15 +02:00
parent 6d92f7d7bf
commit 709beed937
1 changed files with 1 additions and 1 deletions

View 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;