mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
filters: fix condition
During revork in commit cf46f4baee
condition was inverted, the check for non-null string is needed.
This commit is contained in:
parent
2e56778038
commit
2b01af3de9
@ -75,7 +75,7 @@ struct dev_filter *sysfs_filter_create(const char *sysfs_dir)
|
|||||||
struct dev_filter *f;
|
struct dev_filter *f;
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|
||||||
if (!sysfs_dir || *sysfs_dir) {
|
if (!sysfs_dir || !*sysfs_dir) {
|
||||||
log_verbose("No proc filesystem found: skipping sysfs filter");
|
log_verbose("No proc filesystem found: skipping sysfs filter");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user