summaryrefslogtreecommitdiff
path: root/vendor/github.com/json-iterator/go/config.go
diff options
context:
space:
mode:
authordependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>2020-06-09 09:10:33 +0000
committerDaniel J Walsh <dwalsh@redhat.com>2020-06-09 10:24:03 -0400
commit2df9edbd4fafa12387c71ebd048dbb9e1814c3fc (patch)
treef31d8b35db6688d6b95a4a5023072ffa9548aefe /vendor/github.com/json-iterator/go/config.go
parent79f30af384cf6c74f89c3b44c01707da22d867e5 (diff)
downloadpodman-2df9edbd4fafa12387c71ebd048dbb9e1814c3fc.tar.gz
podman-2df9edbd4fafa12387c71ebd048dbb9e1814c3fc.tar.bz2
podman-2df9edbd4fafa12387c71ebd048dbb9e1814c3fc.zip
Bump github.com/json-iterator/go from 1.1.9 to 1.1.10
Bumps [github.com/json-iterator/go](https://github.com/json-iterator/go) from 1.1.9 to 1.1.10. - [Release notes](https://github.com/json-iterator/go/releases) - [Commits](https://github.com/json-iterator/go/compare/v1.1.9...v1.1.10) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'vendor/github.com/json-iterator/go/config.go')
-rw-r--r--vendor/github.com/json-iterator/go/config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/json-iterator/go/config.go b/vendor/github.com/json-iterator/go/config.go
index 8c58fcba5..2adcdc3b7 100644
--- a/vendor/github.com/json-iterator/go/config.go
+++ b/vendor/github.com/json-iterator/go/config.go
@@ -183,11 +183,11 @@ func (cfg *frozenConfig) validateJsonRawMessage(extension EncoderExtension) {
encoder := &funcEncoder{func(ptr unsafe.Pointer, stream *Stream) {
rawMessage := *(*json.RawMessage)(ptr)
iter := cfg.BorrowIterator([]byte(rawMessage))
+ defer cfg.ReturnIterator(iter)
iter.Read()
- if iter.Error != nil {
+ if iter.Error != nil && iter.Error != io.EOF {
stream.WriteRaw("null")
} else {
- cfg.ReturnIterator(iter)
stream.WriteRaw(string(rawMessage))
}
}, func(ptr unsafe.Pointer) bool {