Don't use PL_na.
Rafael Garcia-Suarez [Fri, 23 Mar 2007 18:25:43 +0000 (18:25 +0000)]
p4raw-id: //depot/perl@30730

universal.c

index e1ceea1..6fdf8b9 100644 (file)
@@ -199,7 +199,7 @@ Perl_sv_does(pTHX_ SV *sv, const char *name)
     if (sv_isobject(sv)) {
        classname = sv_reftype(SvRV(sv),TRUE);
     } else {
-       classname = SvPV(sv,PL_na);
+       classname = SvPV_nolen(sv);
     }
 
     if (strEQ(name,classname))