sd-device: fix return value on error path

This commit is contained in:
Yu Watanabe
2018-11-25 14:06:27 +09:00
parent 7af002f71d
commit 779c923467

View File

@@ -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;