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() { } }