check for errors while searching for seeking

This commit is contained in:
sammiq 2019-03-09 15:45:05 +11:00
parent 08b3b803e0
commit 15e0871758
1 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,8 @@ func main() {
}
signature := readSignature(fin)
fin.Seek(0, io.SeekStart)
_, err = fin.Seek(0, io.SeekStart)
errorExit(err)
switch signature {
case "GCML":
case "GCMM":