Skip to content

Commit

Permalink
Fix for command line use of source filters
Browse files Browse the repository at this point in the history
	Message-Id: <9808070856.AA28065@claudius.bfsec.bt.co.uk>

p4raw-id: //depot/maint-5.005/perl@1754
  • Loading branch information
Paul Marquess authored and Gurusamy Sarathy committed Aug 7, 1998
1 parent 322422d commit 7dfe3f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion perl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2971,8 +2971,10 @@ read_e_script(int idx, SV *buf_sv, int maxlen)
p = SvPVX(PL_e_script);
nl = strchr(p, '\n');
nl = (nl) ? nl+1 : SvEND(PL_e_script);
if (nl-p == 0)
if (nl-p == 0) {
filter_del(read_e_script);
return 0;
}
sv_catpvn(buf_sv, p, nl-p);
sv_chop(PL_e_script, nl);
return 1;
Expand Down

0 comments on commit 7dfe3f6

Please sign in to comment.