1
0
mirror of https://github.com/golang/go synced 2024-10-01 05:18:33 -06:00

Correct zoneinfo version number: it's not 2, it's '2'.

R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=16032
CL=16040
This commit is contained in:
Ian Lance Taylor 2008-09-27 09:39:37 -07:00
parent 9f3d600be6
commit 2fb4edd3e1

View File

@ -90,7 +90,7 @@ func ParseZoneinfo(bytes *[]byte) (zt *[]Zonetime, err *os.Error) {
// 1-byte version, then 15 bytes of padding
var p *[]byte
if p = data.Read(16); p == nil || p[0] != 0 && p[0] != 2 {
if p = data.Read(16); p == nil || p[0] != 0 && p[0] != '2' {
return nil, BadZoneinfo
}
vers := p[0]