Commit dc3b6563 authored by Kenton Varda's avatar Kenton Varda

Deep-clear target object when overwriting pointer. (Minor bug I noticed while…

Deep-clear target object when overwriting pointer. (Minor bug I noticed while working on other things.)
parent c48020ad
......@@ -1620,7 +1620,10 @@ struct WireHelpers {
if (src->isNull()) {
useDefault:
memset(dst, 0, sizeof(*dst));
if (!dst->isNull()) {
zeroObject(dstSegment, dst);
memset(dst, 0, sizeof(*dst));
}
return { dstSegment, nullptr };
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment