You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by gs...@apache.org on 2007/08/20 13:10:49 UTC

svn commit: r567655 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/init/vm_init.cpp

Author: gshimansky
Date: Mon Aug 20 04:10:49 2007
New Revision: 567655

URL: http://svn.apache.org/viewvc?rev=567655&view=rev
Log:
Fixed the mistake in commit 567096. The native_thread should be initialized in "if"


Modified:
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/init/vm_init.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/init/vm_init.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/init/vm_init.cpp?rev=567655&r1=567654&r2=567655&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/init/vm_init.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/init/vm_init.cpp Mon Aug 20 04:10:49 2007
@@ -598,7 +598,7 @@
 
     native_thread = hythread_self();
     if (!native_thread) {
-        hythread_t native_thread = (hythread_t)STD_CALLOC(1, hythread_get_struct_size());
+        native_thread = (hythread_t)STD_CALLOC(1, hythread_get_struct_size());
         assert(native_thread);
         IDATA hy_status = hythread_attach_to_group(native_thread, NULL, NULL);
         if (hy_status != TM_ERROR_NONE)