1
0
mirror of https://github.com/json-iterator/go.git synced 2025-03-29 21:20:52 +02:00

#78 not null pointer is considered not empty

This commit is contained in:
Tao Wen 2017-06-28 23:39:46 +08:00
parent faaa59222a
commit 76e62088df

View File

@ -107,7 +107,7 @@ func (encoder *optionalEncoder) IsEmpty(ptr unsafe.Pointer) bool {
if *((*unsafe.Pointer)(ptr)) == nil {
return true
} else {
return encoder.valueEncoder.IsEmpty(*((*unsafe.Pointer)(ptr)))
return false
}
}