mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 08:47:28 +01:00
Zero-initialize implicit io_buffer locals
This commit is contained in:
1 parent
e55ce7d798
commit
23cd084b53
2 files changed
+2
-2
No files matched your search
@@ -296,7 +296,7 @@ func (g *gen) writeVars(b *buffer, f *funk, inStructDecl bool) error {
|
||||
}
|
||||
|
||||
if typ.IsIOType() {
|
||||
b.printf("wuffs_base__io_buffer %s%s;\n", uPrefix, name)
|
||||
b.printf("wuffs_base__io_buffer %s%s = {};\n", uPrefix, name)
|
||||
preName := vPrefix + name
|
||||
// TODO: io0_etc variables?
|
||||
b.printf("uint8_t* %s%s = NULL;\n", iopPrefix, preName)
|
||||
|
||||
Reference in new issue
Block a user