projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
371ddd8
)
Stop segfault in mg.c:636
author
Richard Soderberg
<p5-authors@crystalflame.net>
Thu, 24 May 2001 05:51:52 +0000
(22:51 -0700)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Thu, 24 May 2001 13:02:49 +0000
(13:02 +0000)
Message-ID: <NAEKLNAAHLMBPMPNBMLEGEPGDEAA.rs@crystalflame.net>
p4raw-id: //depot/perl@10194
mg.c
patch
|
blob
|
history
diff --git
a/mg.c
b/mg.c
index b68a52e1d2cda174afaad04bd9d33c3ebe6cae5f..0c865bc33f7ffb049a5b55795ef77d075683c7f2 100644
(file)
--- a/
mg.c
+++ b/
mg.c
@@
-633,7
+633,7
@@
Perl_magic_get(pTHX_ SV *sv, MAGIC *mg)
PL_tainted = FALSE;
}
sv_setpvn(sv, s, i);
- if (DO_UTF8(PL_reg_sv) && is_utf8_string((U8*)s, i))
+ if (
PL_reg_sv &&
DO_UTF8(PL_reg_sv) && is_utf8_string((U8*)s, i))
SvUTF8_on(sv);
else
SvUTF8_off(sv);