]> git.vpit.fr Git - perl/modules/indirect.git/commitdiff
Pass copies as hook arguments
authorVincent Pit <vince@profvince.com>
Thu, 7 May 2009 22:45:59 +0000 (00:45 +0200)
committerVincent Pit <vince@profvince.com>
Thu, 7 May 2009 22:45:59 +0000 (00:45 +0200)
indirect.xs

index b248a19ae64d16867ece884615a2873c7e2b8a8f..f3aa14b4ce3c11f009c3d7b79d6d7b3fa2b4bb5e 100644 (file)
@@ -514,6 +514,8 @@ STATIC OP *indirect_ck_entersub(pTHX_ OP *o) {
 
    if (hint) {
     dSP;
+    onamesv = sv_mortalcopy(onamesv);
+    mnamesv = sv_mortalcopy(mnamesv);
 
     ENTER;
     SAVETMPS;