aboutsummaryrefslogtreecommitdiff
path: root/src/compiler.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-07-08 02:10:26 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-07-08 02:10:26 -0400
commit8692c6fc0da831421855c27008dc046dcf59fca7 (patch)
treed042d93769ffce699cdf00a12b2f37d79e16c05d /src/compiler.cpp
parentf04782785f66879db1f31dd6620cd31161c4da08 (diff)
downloadzig-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/compiler.cpp')
0 files changed, 0 insertions, 0 deletions