summaryrefslogtreecommitdiff
path: root/src/sysfs-show.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-09-23 02:39:54 +0200
committerLennart Poettering <lennart@poettering.net>2011-09-23 16:28:27 +0200
commit3e085b6c59257ca57534afc5044256f2102f9c28 (patch)
treecde9ec14fdd893c6fc00d8e70cabffb04a77cb27 /src/sysfs-show.c
parentde3756ab9916551f3f4f1f360aee59aeed238b5b (diff)
llvm-analyze: change a few things to make llvm-analyze show fewer false positives
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;