Message ID | 20211217203800.61364203B0@pchp3.se.axis.com |
---|---|
State | Committed |
Commit | c36f64aa6dff13b12a1e03a185e75a50fa9f6a4c |
Headers | show |
Series | [v3,1/2] timezone: handle truncated timezones from tzcode-2021d and later (BZ #28707) | expand |
Context | Check | Description |
---|---|---|
dj/TryBot-apply_patch | success | Patch applied to master at the time it was sent |
diff --git a/time/tzfile.c b/time/tzfile.c index 190a777152b3..8668392ad387 100644 --- a/time/tzfile.c +++ b/time/tzfile.c @@ -431,8 +431,8 @@ __tzfile_read (const char *file, size_t extra, char **extrap) if (__tzname[0] == NULL) { /* This should only happen if there are no transition rules. - In this case there should be only one single type. */ - assert (num_types == 1); + In this case there's usually only one single type, unless + e.g. the data file has a truncated time-range. */ __tzname[0] = __tzstring (zone_names); } if (__tzname[1] == NULL)