Skip to content

Commit

Permalink
Merge pull request #6 from rauls5382/master
Browse files Browse the repository at this point in the history
Fix error handling threadz legacy profiles
  • Loading branch information
josef-jelinek committed Mar 11, 2016
2 parents 0f3114e + 7d7ed67 commit 00709b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion profile/legacy_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,8 @@ func parseAdditionalSections(l string, b *bytes.Buffer, p *Profile) (err error)
break
}
// Ignore any unrecognized sections.
if l, err := b.ReadString('\n'); err != nil {
var err error
if l, err = b.ReadString('\n'); err != nil {
if err != io.EOF {
return err
}
Expand Down

0 comments on commit 00709b5

Please sign in to comment.