about summary refs log tree commit diff
path: root/src/rt/rust_crate_reader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_crate_reader.cpp')
-rw-r--r--src/rt/rust_crate_reader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/rust_crate_reader.cpp b/src/rt/rust_crate_reader.cpp
index edad0c2eeee..00253a68f77 100644
--- a/src/rt/rust_crate_reader.cpp
+++ b/src/rt/rust_crate_reader.cpp
@@ -65,7 +65,7 @@ rust_crate_reader::mem_reader::adv_zstr(size_t sz)
 {
   sz = 0;
   while (ok) {
-    char c;
+    char c = 0;
     get(c);
     ++sz;
     if (c == '\0')
@@ -124,7 +124,7 @@ rust_crate_reader::abbrev_reader::abbrev_reader
     //          tell_off());
 
     uintptr_t idx, tag;
-    uint8_t has_children;
+    uint8_t has_children = 0;
     get_uleb(idx);
     get_uleb(tag);
     get(has_children);