chiark / gitweb /
timedated: fixed NTP enabled: n/a
authorHarald Hoyer <harald@redhat.com>
Wed, 17 Apr 2013 06:28:41 +0000 (08:28 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 17 Apr 2013 06:28:41 +0000 (08:28 +0200)
TODO
src/timedate/timedated.c

diff --git a/TODO b/TODO
index f90c66b9813f72c7be40c29587ed170d440397b8..2d53cba3a91480c339882377c5b139c620f7a9de 100644 (file)
--- 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
index 4efa806c399d97f85136ad38dfe734d2789026b5..bb134b7fffb4ee16102affaf25ef0ca48b533d93 100644 (file)
@@ -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;
+                        }
                 }
         }