summaryrefslogtreecommitdiff
path: root/src/timesync/timesyncd.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2014-05-15 20:50:02 +0200
committerKay Sievers <kay@vrfy.org>2014-05-15 20:50:02 +0200
commit59a9fce47b3304bc9ce5d31b04ade5447b3910a4 (patch)
treea0f7c5c55a04e107fba03df29d8497ae16d3b280 /src/timesync/timesyncd.c
parente3ad07d21c3592525ee2f4760ea114bbaa9752a9 (diff)
timesyncd: fix error path return value
https://bugs.freedesktop.org/show_bug.cgi?id=78752
Diffstat (limited to 'src/timesync/timesyncd.c')
-rw-r--r--src/timesync/timesyncd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timesync/timesyncd.c b/src/timesync/timesyncd.c
index 13cd3b1ed3..d26e8cbd6b 100644
--- a/src/timesync/timesyncd.c
+++ b/src/timesync/timesyncd.c
@@ -981,7 +981,7 @@ static int manager_new(Manager **ret) {
r = sd_resolve_attach_event(m->resolve, m->event, 0);
if (r < 0)
- return 0;
+ return r;
r = manager_clock_watch_setup(m);
if (r < 0)