1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cov: dev-mpath: check config_wwids_file

Since config_wwids_file is checked for NULL,
test is also before calling _read_wwid_file()
that is directly dereferencing it.
This commit is contained in:
Zdenek Kabelac 2021-07-27 16:57:39 +02:00
parent b7edda8a98
commit b2db01b530

View File

@ -124,7 +124,8 @@ int dev_mpath_init(const char *config_wwids_file)
_wwid_hash_tab = wwid_tab;
_read_wwid_file(config_wwids_file);
if (config_wwids_file)
_read_wwid_file(config_wwids_file);
return 1;
}