summaryrefslogtreecommitdiff
path: root/src/sysfs-show.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysfs-show.c')
-rw-r--r--src/sysfs-show.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sysfs-show.c b/src/sysfs-show.c
index ab866a4707..b8b356d77b 100644
--- a/src/sysfs-show.c
+++ b/src/sysfs-show.c
@@ -165,6 +165,9 @@ int show_sysfs(const char *seat, const char *prefix, unsigned n_columns) {
else
r = udev_enumerate_add_match_tag(e, "seat");
+ if (r < 0)
+ goto finish;
+
r = udev_enumerate_scan_devices(e);
if (r < 0)
goto finish;