summaryrefslogtreecommitdiffstats
path: root/src/libsystemd/sd-device/device-monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsystemd/sd-device/device-monitor.c')
-rw-r--r--src/libsystemd/sd-device/device-monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-device/device-monitor.c b/src/libsystemd/sd-device/device-monitor.c
index 05e7ec0715..dd312e91ce 100644
--- a/src/libsystemd/sd-device/device-monitor.c
+++ b/src/libsystemd/sd-device/device-monitor.c
@@ -246,7 +246,7 @@ _public_ int sd_device_monitor_attach_event(sd_device_monitor *m, sd_event *even
else {
r = sd_event_default(&m->event);
if (r < 0)
- return 0;
+ return r;
}
return 0;