flac: fix nil pointer assignment segmentation fault

This commit is contained in:
Henry Eklind 2016-10-15 20:29:38 +02:00
parent c6cd3f7103
commit 4a859d4c98
No known key found for this signature in database
GPG key ID: D90EA149CDA76654

View file

@ -182,6 +182,9 @@ func ParseFile(path string) (stream *Stream, err error) {
return nil, err
}
stream, err = Parse(f)
if err != nil {
return nil, err
}
stream.c = f
return stream, err
}