summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2016-09-13 23:06:58 +0200
committerYves Orton <demerphq@gmail.com>2016-09-13 23:08:54 +0200
commitd5ea0ef8623c7d7ba5f42d239787aa71393e2054 (patch)
treee56dca4a4945707a81fb2609f5bafad323b5c2b3 /gv.c
parent65308f87d02a1900e59f0002fa94c855d4d4c5df (diff)
downloadperl-d5ea0ef8623c7d7ba5f42d239787aa71393e2054.tar.gz
clean up gv_fetchmethod_pvn_flags: move origname init to function start
so it is more obvious that it is a constant copy of the original name.
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gv.c b/gv.c
index b0221e03b8..fe38d44246 100644
--- a/gv.c
+++ b/gv.c
@@ -1014,7 +1014,6 @@ Perl_gv_fetchmethod_pvn_flags(pTHX_ HV *stash, const char *name, const STRLEN le
const char *nsplit = NULL;
GV* gv;
HV* ostash = stash;
- const char * const origname = name;
SV *const error_report = MUTABLE_SV(stash);
const U32 autoload = flags & GV_AUTOLOAD;
const U32 do_croak = flags & GV_CROAK;