diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-05-15 16:34:38 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-05-15 17:13:05 +0200 |
commit | 4a134c4903dbf6ef6c6ad55780643a5dd816d349 (patch) | |
tree | d63c6f38b198f1118b8c691864ff5d00f05a3297 /src/libsystemd/sd-event | |
parent | a71fe8b8aee1cb78c4d8c56eeb234743f64e4b4d (diff) |
sd-resolve: add "floating" resolve queries
Same story as for sd-bus and sd-event: allow passing NULL to store query
in in which case the query is freed automatically.
Diffstat (limited to 'src/libsystemd/sd-event')
-rw-r--r-- | src/libsystemd/sd-event/sd-event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-event/sd-event.c b/src/libsystemd/sd-event/sd-event.c index 06af962dfb..c48fa37e89 100644 --- a/src/libsystemd/sd-event/sd-event.c +++ b/src/libsystemd/sd-event/sd-event.c @@ -718,9 +718,9 @@ static sd_event_source *source_new(sd_event *e, bool floating, EventSourceType t s->n_ref = 1; s->event = e; + s->floating = floating; s->type = type; s->pending_index = s->prepare_index = PRIOQ_IDX_NULL; - s->floating = floating; if (!floating) sd_event_ref(e); |