diff options
author | bloodstalker <thabogre@gmail.com> | 2018-10-06 11:16:11 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-10-06 11:16:11 +0000 |
commit | da65d18f0ebf28cb8a829a946d51d7111f6b493a (patch) | |
tree | 316335cef22d113c47e9f9fed52bc6b6cfe214a0 /main.py | |
parent | update (diff) | |
download | faultreiber-da65d18f0ebf28cb8a829a946d51d7111f6b493a.tar.gz faultreiber-da65d18f0ebf28cb8a829a946d51d7111f6b493a.zip |
update
Diffstat (limited to '')
-rwxr-xr-x | main.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -305,14 +305,14 @@ class CodeGen(object): dummy_string += ", " + elem.attrib["name"] + "*" + " dummy_" + elem.attrib["name"] read_source.write(static + inline + text.c_read_elem_sig.replace("YYY", elem.attrib["name"]).replace("XXX", elem.attrib["name"]+pointer)) read_source.write("*dummy = "+alloc+"(sizeof(" + elem.attrib["name"] + "));\n") - read_source.write("uint64_t b_count;\n") + read_source.write("uint64_t b_count = 0;\n") if count_version: count_version_buffer = static + inline + text.c_read_elem_sig_c.replace("YYY", elem.attrib["name"]).replace("XXX", elem.attrib["name"]+pointer) count_version_buffer += "*dummy = "+alloc+"(sizeof(" + elem.attrib["name"] + "));\n" - count_version_buffer += "uint64_t b_count;\n" + count_version_buffer += "uint64_t b_count = 0;\n" for sub in elem: if "sizeconst" in sub.attrib: - read_source.write("uint64_t agg_b_count;\n") + read_source.write("uint64_t agg_b_count = 0;\n") break read_source.write(text.c_void_manager_proto.replace("XXX", "(*dummy)")); if count_version: count_version_buffer += text.c_void_manager_proto.replace("XXX", "(*dummy)") |