summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-11-14 10:21:49 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-11-14 10:21:49 +0000
commited094fafab5cc8979a919ec8755493543b6bddf5 (patch)
treed3068544a31f301f4c4ebaa5c82faf19fe89c5dd /gv.c
parentff689196a75c2757dfba08a8f95f0eb42fb81136 (diff)
downloadperl-ed094fafab5cc8979a919ec8755493543b6bddf5.tar.gz
sundry cleanups for cloned interpreters (only known failure mode
is due to regexps keeping non-constant data in their compiled structures) p4raw-id: //depot/perl@4579
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gv.c b/gv.c
index 25e5b3677a..f6c9744847 100644
--- a/gv.c
+++ b/gv.c
@@ -59,6 +59,9 @@ Perl_gv_fetchfile(pTHX_ const char *name)
STRLEN tmplen;
GV *gv;
+ if (!PL_defstash)
+ return Nullgv;
+
tmplen = strlen(name) + 2;
if (tmplen < sizeof smallbuf)
tmpbuf = smallbuf;
@@ -445,8 +448,8 @@ Perl_gv_fetchpv(pTHX_ const char *nambeg, I32 add, I32 sv_type)
name++;
for (namend = name; *namend; namend++) {
- if ((*namend == '\'' && namend[1]) ||
- (*namend == ':' && namend[1] == ':'))
+ if ((*namend == ':' && namend[1] == ':')
+ || (*namend == '\'' && namend[1]))
{
if (!stash)
stash = PL_defstash;