mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 00:47:28 +01:00
Always zero-init pointery-typed vars on resume
This commit is contained in:
1 parent
a86023b290
commit
56c27ed3c3
3 files changed
+4
-2
No files matched your search
@@ -282,8 +282,7 @@ func (g *gen) writeResumeSuspend1(b *buffer, n *a.Var, suspend bool, initBoolTyp
|
||||
local := fmt.Sprintf("%s%s", vPrefix, n.Name().Str(g.tm))
|
||||
|
||||
if typ := n.XType(); typ.HasPointers() {
|
||||
// TODO: drop the initBoolTypedVars.
|
||||
if suspend || initBoolTypedVars {
|
||||
if suspend {
|
||||
return nil
|
||||
}
|
||||
rhs := ""
|
||||
|
||||
Reference in new issue
Block a user