summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-05-10 15:38:07 +0000
committerNicholas Clark <nick@ccl4.org>2005-05-10 15:38:07 +0000
commitc69006e4a4556d3b1d6e1a57c49a95b1d16efeb0 (patch)
tree98297c1327e41049d27edc7b25511919e0ad2f2b /mg.c
parentea6e9374082ba65411b39d56a62387c8a2bd2879 (diff)
downloadperl-c69006e4a4556d3b1d6e1a57c49a95b1d16efeb0.tar.gz
s/sv_setpv(sv,"")/sv_setpvn(sv,"",0)/
plus a couple of 1 byte sv_setpv()s too. p4raw-id: //depot/perl@24439
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mg.c b/mg.c
index 21a3747e6c..bb16deac49 100644
--- a/mg.c
+++ b/mg.c
@@ -608,7 +608,7 @@ Perl_magic_get(pTHX_ SV *sv, MAGIC *mg)
if (sys$getmsg(vaxc$errno,&msgdsc.dsc$w_length,&msgdsc,0,0) & 1)
sv_setpvn(sv,msgdsc.dsc$a_pointer,msgdsc.dsc$w_length);
else
- sv_setpv(sv,"");
+ sv_setpvn(sv,"",0);
}
#else
#ifdef OS2
@@ -634,7 +634,7 @@ Perl_magic_get(pTHX_ SV *sv, MAGIC *mg)
PerlProc_GetOSError(sv, dwErr);
}
else
- sv_setpv(sv, "");
+ sv_setpvn(sv, "", 0);
SetLastError(dwErr);
}
#else