1
0
mirror of https://github.com/golang/go synced 2024-11-13 19:10:22 -07:00

image/gif: fix nil deref in test

LGTM=crawshaw, dave
R=golang-codereviews, crawshaw, dave
CC=golang-codereviews
https://golang.org/cl/104520044
This commit is contained in:
Dmitriy Vyukov 2014-07-05 08:48:04 +04:00
parent 72faffbc70
commit 67afeac2ab

View File

@ -116,7 +116,7 @@ func TestEncodeAll(t *testing.T) {
for i, f := range frames {
m, err := readGIF(f)
if err != nil {
t.Error(f, err)
t.Fatal(f, err)
}
g0.Image[i] = m.Image[0]
}