summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-02-02 00:24:06 +0000
committerNicholas Clark <nick@ccl4.org>2006-02-02 00:24:06 +0000
commitb208e10c815b328b5c2ddc25197ff4990f6302e0 (patch)
treeeb2f651ec0a4a3cff5e8aca1183cf836ae3bac1c /gv.c
parentcf5629ad4b7898d5572f5092889a07327a1f828b (diff)
downloadperl-b208e10c815b328b5c2ddc25197ff4990f6302e0.tar.gz
And another assumption.
p4raw-id: //depot/perl@27049
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gv.c b/gv.c
index 8f023c1c02..c47c75f7f7 100644
--- a/gv.c
+++ b/gv.c
@@ -766,8 +766,10 @@ Perl_gv_fetchpvn_flags(pTHX_ const char *nambeg, STRLEN full_len, I32 flags,
const char *const name_end = nambeg + full_len;
const char *const name_em1 = name_end - 1;
- if (*name == '*' && isALPHA(name[1])) /* accidental stringify on a GV? */
+ if (full_len > 2 && *name == '*' && isALPHA(name[1])) {
+ /* accidental stringify on a GV? */
name++;
+ }
for (name_cursor = name; name_cursor < name_end; name_cursor++) {
if ((*name_cursor == ':' && name_cursor < name_em1