char *
Perl_savepv(pTHX_ const char *sv)
{
- register char *newaddr = sv;
+ register char *newaddr = Nullch;
if (sv) {
New(902,newaddr,strlen(sv)+1,char);
(void)strcpy(newaddr,sv);
- }
+ }
return newaddr;
}
char *
Perl_savesharedpv(pTHX_ const char *sv)
{
- register char *newaddr = sv;
+ register char *newaddr = Nullch;
if (sv) {
newaddr = PerlMemShared_malloc(strlen(sv)+1);
(void)strcpy(newaddr,sv);