[svn:parrot] r37502 - trunk/src

cotto at svn.parrot.org cotto at svn.parrot.org
Mon Mar 16 21:49:31 UTC 2009


Author: cotto
Date: Mon Mar 16 21:49:29 2009
New Revision: 37502
URL: https://trac.parrot.org/parrot/changeset/37502

Log:
[thread] don't use an uninitialized interp

Modified:
   trunk/src/thread.c

Modified: trunk/src/thread.c
==============================================================================
--- trunk/src/thread.c	Mon Mar 16 21:06:48 2009	(r37501)
+++ trunk/src/thread.c	Mon Mar 16 21:49:29 2009	(r37502)
@@ -500,7 +500,8 @@
     PMC             *sub_arg;
     PMC * const      self    = (PMC*) arg;
     PMC             *ret_val = NULL;
-    Parrot_Interp    interp  = (Parrot_Interp)VTABLE_get_pointer(interp, self);
+    Parrot_Interp    interp  =
+       (Parrot_Interp)((Parrot_ParrotInterpreter_attributes *)PMC_data(self))->interp;
 
     Parrot_block_GC_mark(interp);
     Parrot_block_GC_sweep(interp);


More information about the parrot-commits mailing list