diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-02-02 00:24:06 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-02-02 00:24:06 +0000 |
commit | b208e10c815b328b5c2ddc25197ff4990f6302e0 (patch) | |
tree | eb2f651ec0a4a3cff5e8aca1183cf836ae3bac1c /gv.c | |
parent | cf5629ad4b7898d5572f5092889a07327a1f828b (diff) | |
download | perl-b208e10c815b328b5c2ddc25197ff4990f6302e0.tar.gz |
And another assumption.
p4raw-id: //depot/perl@27049
Diffstat (limited to 'gv.c')
-rw-r--r-- | gv.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |