summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2003-01-20 08:34:10 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2003-01-20 08:34:10 +0000
commit54edfe98c96ca4fc3201cb56346b2da311667ac2 (patch)
treebcddfe6c6b86fae5f79fcd9d81f18153aadde02b /doio.c
parent530ffa68c5cfb9f475ad558801f0d613f3ce34e1 (diff)
downloadperl-54edfe98c96ca4fc3201cb56346b2da311667ac2.tar.gz
Integrate #18405 from maint-5.8 which fixes whitespac
issues in open(FH,"&...") p4raw-id: //depot/perl@18517 p4raw-integrated: from //depot/maint-5.8/perl@18516 'merge in' doio.c (@18405..)
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/doio.c b/doio.c
index 3ae3764d58..fe8ed7ee23 100644
--- a/doio.c
+++ b/doio.c
@@ -323,13 +323,13 @@ Perl_do_openn(pTHX_ GV *gv, register char *name, I32 len, int as_raw,
if (num_svs > 1) {
Perl_croak(aTHX_ "More than one argument to '%c&' open",IoTYPE(io));
}
+ /*SUPPRESS 530*/
+ for (; isSPACE(*type); type++) ;
if (num_svs && (SvIOK(*svp) || (SvPOK(*svp) && looks_like_number(*svp)))) {
fd = SvUV(*svp);
num_svs = 0;
}
else if (isDIGIT(*type)) {
- /*SUPPRESS 530*/
- for (; isSPACE(*type); type++) ;
fd = atoi(type);
}
else {
@@ -339,8 +339,6 @@ Perl_do_openn(pTHX_ GV *gv, register char *name, I32 len, int as_raw,
}
else {
GV *thatgv;
- /*SUPPRESS 530*/
- for (; isSPACE(*type); type++) ;
thatgv = gv_fetchpv(type,FALSE,SVt_PVIO);
thatio = GvIO(thatgv);
}