chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
timedated: fixed NTP enabled: n/a
[elogind.git]
/
src
/
timedate
/
timedated.c
diff --git
a/src/timedate/timedated.c
b/src/timedate/timedated.c
index 4efa806c399d97f85136ad38dfe734d2789026b5..bb134b7fffb4ee16102affaf25ef0ca48b533d93 100644
(file)
--- 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;
+ }
}
}