mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 06:30:30 +00:00
sd-device: fix return value on error path
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user