Skip to content

Commit 09ce917

Browse files
committedMar 20, 2016
Initialize NativeMethodEnvironment* to NULL.
1 parent 85cd7c9 commit 09ce917

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

Diff for: ‎machine/vm.cpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ namespace rubinius {
7171

7272
VM::VM(uint32_t id, SharedState& shared, const char* name)
7373
: memory::ManagedThread(id, shared, memory::ManagedThread::eRuby, name)
74-
, call_frame_(0)
74+
, call_frame_(NULL)
7575
, thread_nexus_(shared.thread_nexus())
76-
, saved_call_site_information_(0)
76+
, saved_call_site_information_(NULL)
7777
, fiber_stacks_(this, shared)
7878
, park_(new Park)
7979
, tooling_env_(NULL)
@@ -90,8 +90,9 @@ namespace rubinius {
9090
, current_fiber(this, nil<Fiber>())
9191
, root_fiber(this, nil<Fiber>())
9292
, waiting_object_(this, cNil)
93-
, custom_wakeup_(0)
94-
, custom_wakeup_data_(0)
93+
, native_method_environment(NULL)
94+
, custom_wakeup_(NULL)
95+
, custom_wakeup_data_(NULL)
9596
, thread_state_(this)
9697
{
9798
if(memory()) {

0 commit comments

Comments
 (0)