[Jifty-commit] r5482 - B

Jifty commits jifty-commit at lists.jifty.org
Sun May 18 09:27:14 EDT 2008


Author: clkao
Date: Sun May 18 09:27:13 2008
New Revision: 5482

Modified:
   B/B.xs

Log:
Use cv_clone instead of our assignment, since we need the pad to
be duplicated properly.


Modified: B/B.xs
==============================================================================
--- B/B.xs	(original)
+++ B/B.xs	Sun May 18 09:27:13 2008
@@ -1769,12 +1769,10 @@
     PREINIT:
        CV *new;
     CODE:
-       new = (CV *)newSV(0);
-       sv_upgrade((SV *)new, SvTYPE(cv));
-       (*(XPVCV*)SvANY(new)) = (*(XPVCV*)SvANY(cv));
+       new = cv_clone(cv);
        CvROOT(new) = root;
        CvSTART(new) = start;
-       SvREFCNT_inc(CvPADLIST(new));
+       CvDEPTH(new) = 0;
        SvREFCNT_inc(new);
        RETVAL = new;
     OUTPUT:


More information about the Jifty-commit mailing list