summaryrefslogtreecommitdiff
path: root/src/lib/json/struct.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/json/struct.go')
-rw-r--r--src/lib/json/struct.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/json/struct.go b/src/lib/json/struct.go
index cfba2ce6d..ac2689557 100644
--- a/src/lib/json/struct.go
+++ b/src/lib/json/struct.go
@@ -176,7 +176,7 @@ func (b *_StructBuilder) Map() {
if v := b.val; v.Kind() == reflect.PtrKind {
pv := v.(reflect.PtrValue);
if pv.Get() == nil {
- pv.SetSub(reflect.NewInitValue(pv.Type().(reflect.PtrType).Sub()))
+ pv.SetSub(reflect.NewZeroValue(pv.Type().(reflect.PtrType).Sub()))
}
}
}