Skip to content

Commit

Permalink
Code cleanup: initialize members to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
shravanrn committed Oct 4, 2023
1 parent 0938ae9 commit 04cf09c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/rlbox_wasm2c_sandbox.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,12 @@ class rlbox_wasm2c_sandbox

private:
mutable typename RLBOX_WASM_MODULE_TYPE_CURR::instance_t wasm2c_instance{ 0 };
struct w2c_env sandbox_memory_env;
struct w2c_wasi__snapshot__preview1 wasi_env;
struct w2c_env sandbox_memory_env{ 0 };
struct w2c_wasi__snapshot__preview1 wasi_env{ 0 };
bool instance_initialized = false;
wasm_rt_memory_t sandbox_memory_info;
mutable wasm_rt_funcref_table_t sandbox_callback_table;
uintptr_t heap_base;
wasm_rt_memory_t sandbox_memory_info{ 0 };
mutable wasm_rt_funcref_table_t sandbox_callback_table{ 0 };
uintptr_t heap_base = 0;
size_t return_slot_size = 0;
T_PointerType return_slot = 0;
mutable std::vector<T_PointerType> callback_free_list;
Expand Down

0 comments on commit 04cf09c

Please sign in to comment.