1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-08 09:57:55 +03:00

filters: fix condition

During revork in commit cf46f4baeeaba5f79982e651c1c36c15476f7329
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;
}