Skip to content

Commit

Permalink
Fixed #38
Browse files Browse the repository at this point in the history
  • Loading branch information
EugZol committed Feb 13, 2017
1 parent ace5d4f commit 4899b19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xml.go
Original file line number Diff line number Diff line change
Expand Up @@ -740,13 +740,13 @@ func myByteReader(r io.Reader) io.Reader {

// need for io.Reader - but we don't use it ...
func (b *byteReader) Read(p []byte) (int, error) {
return 0, nil
return b.r.Read(p)
}

func (b *byteReader) ReadByte() (byte, error) {
_, err := b.r.Read(b.b)
if len(b.b) > 0 {
return b.b[0], nil
return b.b[0], err
}
var c byte
return c, err
Expand Down

0 comments on commit 4899b19

Please sign in to comment.