summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libsystemd-bus/sd-event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/sd-event.c b/src/libsystemd-bus/sd-event.c
index b318fd00aa..3599d90eb4 100644
--- a/src/libsystemd-bus/sd-event.c
+++ b/src/libsystemd-bus/sd-event.c
@@ -1002,7 +1002,7 @@ int sd_event_source_set_io_events(sd_event_source *s, uint32_t events) {
return 0;
if (s->enabled != SD_EVENT_OFF) {
- r = source_io_register(s, s->io.events, events);
+ r = source_io_register(s, s->enabled, events);
if (r < 0)
return r;
}