diff options
author | Kay Sievers <kay@vrfy.org> | 2012-11-02 05:45:02 -1000 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2012-11-02 05:45:02 -1000 |
commit | e2fd5e5ba281a22886fa3797dc6265cca670448b (patch) | |
tree | f480e4553a5b5e53dd1e48afab3a5366411c8793 /src/shared/time-dst.c | |
parent | 62ffb3327ab100cb547c7fbed6f5ceea3d88c2ec (diff) |
timedatectl: show "DST active: n/a" if no DST data is available
Diffstat (limited to 'src/shared/time-dst.c')
-rw-r--r-- | src/shared/time-dst.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/time-dst.c b/src/shared/time-dst.c index 8f3cafd5eb..df5f15151d 100644 --- 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; - int err = 0; + int err = -EINVAL; f = fopen(tzfile, "re"); if (f == NULL) |