This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
711a390
)
pp_sys.c: goto mustn’t skip initialisation
author
Father Chrysostomos
<sprout@cpan.org>
Sat, 14 Jan 2012 19:31:45 +0000
(11:31 -0800)
committer
Father Chrysostomos
<sprout@cpan.org>
Sat, 14 Jan 2012 19:31:45 +0000
(11:31 -0800)
pp_sys.c
patch
|
blob
|
blame
|
history
diff --git
a/pp_sys.c
b/pp_sys.c
index
d748693
..
3611f51
100644
(file)
--- a/
pp_sys.c
+++ b/
pp_sys.c
@@
-2759,7
+2759,7
@@
PP(pp_stat)
if (PL_op->op_flags & OPf_REF ? (gv = cGVOP_gv, 1)
: !!(sv=POPs, gv = MAYBE_DEREF_GV(sv))) {
- bool havefp
= FALSE
;
+ bool havefp;
if (PL_op->op_type == OP_LSTAT) {
if (gv != PL_defgv) {
do_fstat_warning_check:
@@
-2774,6
+2774,7
@@
PP(pp_stat)
Perl_croak(aTHX_ "The stat preceding lstat() wasn't an lstat");
}
+ havefp = FALSE;
if (gv != PL_defgv) {
PL_laststype = OP_STAT;
PL_statgv = gv;