diff options
Diffstat (limited to 'src/pkg/json/struct.go')
| -rw-r--r-- | src/pkg/json/struct.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pkg/json/struct.go b/src/pkg/json/struct.go index e5b2188f5..680a5af4b 100644 --- a/src/pkg/json/struct.go +++ b/src/pkg/json/struct.go @@ -248,10 +248,8 @@ func (b *_StructBuilder) Key(k string) Builder { // On a syntax error, it returns with ok set to false and errtok // set to the offending token. func Unmarshal(s string, val interface{}) (ok bool, errtok string) { - var errindx int; - var val1 interface{}; b := &_StructBuilder{ reflect.NewValue(val) }; - ok, errindx, errtok = Parse(s, b); + ok, _, errtok = Parse(s, b); if !ok { return false, errtok } |
