chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
timedatectl: show "DST active: n/a" if no DST data is available
[elogind.git]
/
src
/
shared
/
time-dst.c
diff --git
a/src/shared/time-dst.c
b/src/shared/time-dst.c
index 8f3cafd5eb8064c62b33ad556decb2923f211c4f..df5f15151d063bbb6c317c324a13a99194f4e51b 100644
(file)
--- a/
src/shared/time-dst.c
+++ b/
src/shared/time-dst.c
@@
-102,7
+102,7
@@
int time_get_dst(time_t date, const char *tzfile,
size_t tzspec_len;
size_t num_leaps;
size_t lo, hi;
size_t tzspec_len;
size_t num_leaps;
size_t lo, hi;
- int err =
0
;
+ int err =
-EINVAL
;
f = fopen(tzfile, "re");
if (f == NULL)
f = fopen(tzfile, "re");
if (f == NULL)