summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-10-16 05:56:37 +0200
committerLennart Poettering <lennart@poettering.net>2013-10-16 06:15:00 +0200
commite471512768bc0c5c3809178ff42c67e10da25f34 (patch)
tree2ab46417fd3d7d967f2f83afdbd2a2c3de28fcd0
parent44b601bc79e46722bc0f0862ee0ce34a2284ef11 (diff)
event: fix sd_event_source_set_io_events()
-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;
}