use newSVpvs() on the constant string "isa", rather than newSVpv().
Nicholas Clark [Thu, 18 Oct 2007 17:14:38 +0000 (17:14 +0000)]
p4raw-id: //depot/perl@32134

universal.c

index 457fffa..fa0ccd3 100644 (file)
@@ -161,7 +161,7 @@ Perl_sv_does(pTHX_ SV *sv, const char *name)
     XPUSHs(sv_2mortal(newSVpv(name, 0)));
     PUTBACK;
 
-    methodname = sv_2mortal(newSVpv("isa", 0));
+    methodname = sv_2mortal(newSVpvs("isa"));
     /* ugly hack: use the SvSCREAM flag so S_method_common
      * can figure out we're calling DOES() and not isa(),
      * and report eventual errors correctly. --rgs */