[systemd-commits] src/timedate TODO
Harald Hoyer
harald at kemper.freedesktop.org
Tue Apr 16 23:43:21 PDT 2013
TODO | 2 --
src/timedate/timedated.c | 7 +++++--
2 files changed, 5 insertions(+), 4 deletions(-)
New commits:
commit 7e7d4da22925c329d668334aec3b3e7f21f63bc3
Author: Harald Hoyer <harald at redhat.com>
Date: Wed Apr 17 08:28:41 2013 +0200
timedated: fixed NTP enabled: n/a
diff --git a/TODO b/TODO
index f90c66b..2d53cba 100644
--- a/TODO
+++ b/TODO
@@ -1,6 +1,4 @@
Bugfixes:
-* timedatectl: NTP enabled: n/a
-
* systemctl --system show -p Fr<TAB> default.target doesn't show anything
* check systemd-tmpfiles for selinux context hookup for mknod(), symlink() and similar
diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c
index 4efa806..bb134b7 100644
--- a/src/timedate/timedated.c
+++ b/src/timedate/timedated.c
@@ -90,6 +90,8 @@ typedef struct TZ {
} TZ;
static TZ tz = {
+ .zone = NULL,
+ .local_rtc = false,
.can_ntp = -1,
.use_ntp = -1,
};
@@ -303,9 +305,10 @@ static char** get_ntp_services(void) {
if (l[0] == 0 || l[0] == '#')
continue;
- if (strv_extend(&r, l) < 0)
+ if (strv_extend(&r, l) < 0) {
log_oom();
- return NULL;
+ return NULL;
+ }
}
}
More information about the systemd-commits
mailing list