This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use sv_setpvn where we know the length.
authorNicholas Clark <nick@ccl4.org>
Thu, 30 Jun 2005 17:37:56 +0000 (17:37 +0000)
committerNicholas Clark <nick@ccl4.org>
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 ) {