]> git.vpit.fr Git - perl/modules/indirect.git/commitdiff
Make names stored in the op map readonly
authorVincent Pit <vince@profvince.com>
Thu, 7 May 2009 22:40:47 +0000 (00:40 +0200)
committerVincent Pit <vince@profvince.com>
Thu, 7 May 2009 22:40:47 +0000 (00:40 +0200)
indirect.xs

index 6203d97a4d74679471f6e733771c711aa63c5c2c..b248a19ae64d16867ece884615a2873c7e2b8a8f 100644 (file)
@@ -292,6 +292,7 @@ STATIC void indirect_map_store(pTHX_ const OP *o, const char *src, SV *sv) {
  SvUVX(val) = PTR2UV(src);
  SvIOK_on(val);
  SvIsUV_on(val);
+ SvREADONLY_on(val);
 
  ptable_store(MY_CXT.map, o, val);
 }