mirror of
git://sourceware.org/git/lvm2.git
synced 2025-11-30 04:23:48 +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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user