summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/time-dst.c2
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)