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:
1d0eb99
)
lstat on *GLOB{IO} with warnings on would segfault
author
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Thu, 10 Aug 2006 09:46:34 +0000
(09:46 +0000)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Thu, 10 Aug 2006 09:46:34 +0000
(09:46 +0000)
(noticed by Andrew Dougherty)
p4raw-id: //depot/perl@28690
pp_sys.c
patch
|
blob
|
blame
|
history
diff --git
a/pp_sys.c
b/pp_sys.c
index
a7c9414
..
909f5f7
100644
(file)
--- a/
pp_sys.c
+++ b/
pp_sys.c
@@
-2798,7
+2798,7
@@
PP(pp_stat)
do_fstat_warning_check:
if (ckWARN(WARN_IO))
Perl_warner(aTHX_ packWARN(WARN_IO),
- "lstat() on filehandle %s",
GvENAME(gv)
);
+ "lstat() on filehandle %s",
gv ? GvENAME(gv) : ""
);
} else if (PL_laststype != OP_LSTAT)
Perl_croak(aTHX_ "The stat preceding lstat() wasn't an lstat");
}