timedatectl: show "DST active: n/a" if no DST data is available

This commit is contained in:
Kay Sievers
2012-11-02 05:45:02 -10:00
parent 62ffb3327a
commit e2fd5e5ba2
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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)