PyObject *dst_abbr = NULL;
TransitionRuleType *start = NULL;
TransitionRuleType *end = NULL;
- long std_offset, dst_offset;
+ // Initialize offsets to invalid value (> 24 hours)
+ long std_offset = 1 << 20;
+ long dst_offset = 1 << 20;
char *tz_str = PyBytes_AsString(tz_str_obj);
if (tz_str == NULL) {
long dst_offset, TransitionRuleType *start,
TransitionRuleType *end, _tzrule *out)
{
- _tzrule rv = {0};
+ _tzrule rv = {{0}};
rv.start = start;
rv.end = end;