Skip to content

Commit

Permalink
Merge pull request #39 from EugZol/master
Browse files Browse the repository at this point in the history
Fixed #38
  • Loading branch information
clbanning committed Feb 13, 2017
2 parents ace5d4f + 4899b19 commit b0330e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xml.go
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 b0330e7

Please sign in to comment.