aboutsummaryrefslogtreecommitdiff
path: root/src/rt/rust_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_internal.h')
-rw-r--r--src/rt/rust_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust_internal.h b/src/rt/rust_internal.h
index a1cc8e51..4a1f3e45 100644
--- a/src/rt/rust_internal.h
+++ b/src/rt/rust_internal.h
@@ -403,7 +403,7 @@ rust_crate_reader
void get_uleb(T &out) {
out = T(0);
for (size_t i = 0; i < sizeof(T) && ok; ++i) {
- uint8_t byte;
+ uint8_t byte = 0;
get(byte);
out <<= 7;
out |= byte & 0x7f;