diff --git a/lib/filters/filter-sysfs.c b/lib/filters/filter-sysfs.c index 806363201..762733206 100644 --- a/lib/filters/filter-sysfs.c +++ b/lib/filters/filter-sysfs.c @@ -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; }