Use sv_setpvn where we know the length.
Nicholas Clark [Thu, 30 Jun 2005 17:37:56 +0000 (17:37 +0000)]
p4raw-id: //depot/perl@25030

universal.c

index ad80a21..507ab14 100644 (file)
@@ -418,7 +418,7 @@ XS(XS_version_new)
            else {
                /* create empty object */
                vs = sv_newmortal();
-               sv_setpv(vs,"");
+               sv_setpvn(vs,"",0);
            }
        }
        else if ( items == 3 ) {