diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-07-08 02:10:26 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-07-08 02:10:26 -0400 |
| commit | 8692c6fc0da831421855c27008dc046dcf59fca7 (patch) | |
| tree | d042d93769ffce699cdf00a12b2f37d79e16c05d /src/ir.cpp | |
| parent | f04782785f66879db1f31dd6620cd31161c4da08 (diff) | |
| download | zig-8692c6fc0da831421855c27008dc046dcf59fca7.tar.gz zig-8692c6fc0da831421855c27008dc046dcf59fca7.zip | |
zero initialize target
Fixes glibc_version being set to garbage. I've made this mistake
before so this is an attempt to prevent future bugs. Zig doesn't
have zero-initialization, so are we being a hypocrite by using this
C feature? No, because C doesn't have the feature that forces you to
initialize all fields. That would have prevented this bug every single
time.
Diffstat (limited to 'src/ir.cpp')
0 files changed, 0 insertions, 0 deletions
