1
0
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:
Zdenek Kabelac 2023-10-18 02:19:15 +02:00
parent 2e56778038
commit 2b01af3de9

View File

@ -75,7 +75,7 @@ struct dev_filter *sysfs_filter_create(const char *sysfs_dir)
struct dev_filter *f;
size_t len;
if (!sysfs_dir || *sysfs_dir) {
if (!sysfs_dir || !*sysfs_dir) {
log_verbose("No proc filesystem found: skipping sysfs filter");
return NULL;
}