diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-02-13 13:25:55 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-02-13 13:25:55 -0700 |
| commit | 8d510c699afe2b508482f2c106ef4b4524a5861b (patch) | |
| tree | e3f9cbfc13902c2c671cf4ff9bea4a426913050b /src/analyze.cpp | |
| parent | c8376af92d63d13574cae7d177b7d314dda44cfe (diff) | |
| download | zig-8d510c699afe2b508482f2c106ef4b4524a5861b.tar.gz zig-8d510c699afe2b508482f2c106ef4b4524a5861b.zip | |
parseh: fix branching on undefined memory
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index 3e57d646c0..2cb9108005 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -749,7 +749,7 @@ static TypeTableEntry *analyze_fn_proto_type(CodeGen *g, ImportTableEntry *impor return g->builtin_types.entry_invalid; } - FnTypeId fn_type_id; + FnTypeId fn_type_id = {0}; fn_type_id.is_extern = fn_proto->is_extern || (fn_proto->visib_mod == VisibModExport); fn_type_id.is_naked = is_naked; fn_type_id.is_cold = is_cold; |
