summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorHugo van der Sanden <hv@crypt.org>2000-10-19 00:25:58 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2000-10-18 23:36:24 +0000
commit790090df87a94d63cdbf866bce162581c29c2abf (patch)
tree7d03d55c31794f3ab5ccb6e9fd7ce500ddb28e2f /pp_hot.c
parent177e2d42271d33bb6d33298a0190fe4d19a3bb61 (diff)
downloadperl-790090df87a94d63cdbf866bce162581c29c2abf.tar.gz
Re: [ID 20001018.008] flip-flop bug when there's no <FH>
Message-Id: <200010182225.XAA20330@crypt.compulink.co.uk> p4raw-id: //depot/perl@7365
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 6f582c097b..9b0573bb03 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -1412,7 +1412,8 @@ Perl_do_readline(pTHX)
}
}
if (!fp) {
- if (ckWARN2(WARN_GLOB,WARN_CLOSED) && io && !(IoFLAGS(io) & IOf_START)) {
+ if (ckWARN2(WARN_GLOB, WARN_CLOSED)
+ && (!io || !(IoFLAGS(io) & IOf_START))) {
if (type == OP_GLOB)
Perl_warner(aTHX_ WARN_GLOB,
"glob failed (can't start child: %s)",