]> git.vpit.fr Git - perl/modules/indirect.git/commitdiff
MY_CXT_INIT can be a declaration, so put it in a block to be strictly conformant...
authorVincent Pit <vince@profvince.com>
Sat, 24 Apr 2010 13:05:22 +0000 (15:05 +0200)
committerVincent Pit <vince@profvince.com>
Sat, 24 Apr 2010 13:05:22 +0000 (15:05 +0200)
Thanks Jan Dubois for reporting.

indirect.xs

index f0c42ef1044b3917779688b3e89b9b4877d53729..f0af0b68c699a2ca828e4ae2ae87de0cc45e8ab1 100644 (file)
@@ -840,13 +840,15 @@ STATIC void indirect_setup(pTHX) {
  if (indirect_initialized)
   return;
 
- MY_CXT_INIT;
+ {
+  MY_CXT_INIT;
 #if I_THREADSAFE
- MY_CXT.tbl     = ptable_new();
- MY_CXT.owner   = aTHX;
 MY_CXT.tbl     = ptable_new();
 MY_CXT.owner   = aTHX;
 #endif
- MY_CXT.map     = ptable_new();
- MY_CXT.linestr = NULL;
+  MY_CXT.map     = ptable_new();
+  MY_CXT.linestr = NULL;
+ }
 
  indirect_old_ck_const    = PL_check[OP_CONST];
  PL_check[OP_CONST]       = MEMBER_TO_FPTR(indirect_ck_const);