From 718cb8b5792ac6b74541039df149262a9586699c Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Mon, 5 Oct 2009 04:31:35 -0500 Subject: [PATCH] vm: fix VM constructor --- vm/factor.cpp | 2 +- vm/vm.cpp | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/vm/factor.cpp b/vm/factor.cpp index 41a2da6f03..77c2e67148 100755 --- a/vm/factor.cpp +++ b/vm/factor.cpp @@ -224,7 +224,7 @@ struct startargs { factor_vm *new_factor_vm() { - factor_vm *newvm = new factor_vm; + factor_vm *newvm = new factor_vm(); register_vm_with_thread(newvm); thread_vms[thread_id()] = newvm; diff --git a/vm/vm.cpp b/vm/vm.cpp index a6731a3225..45cf05075c 100755 --- a/vm/vm.cpp +++ b/vm/vm.cpp @@ -3,9 +3,6 @@ namespace factor { -factor_vm::factor_vm() -{ - memset(this,0,sizeof(factor_vm)); -} +factor_vm::factor_vm() { } }