chiark / gitweb /
Implement SocketUser= and SocketGroup= for [Socket]
[elogind.git] / src / shared / time-dst.c
index 8f3cafd5eb8064c62b33ad556decb2923f211c4f..df5f15151d063bbb6c317c324a13a99194f4e51b 100644 (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)