From: Perl 5 Porters Date: Sun, 24 Mar 1996 11:19:20 +0000 (+0000) Subject: perl 5.002_01: pp_ctl.c X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a6c477ed8d4864e6557784ad46991944ec9b9f86;p=p5sagit%2Fp5-mst-13.2.git perl 5.002_01: pp_ctl.c Change run to runops, and e_fp test to use e_tmpname, since e_fp is reset to 0 when file is closed in perl.c --- diff --git a/pp_ctl.c b/pp_ctl.c index 1f558f7..e57e88a 100644 --- a/pp_ctl.c +++ b/pp_ctl.c @@ -998,10 +998,14 @@ char *message; } fputs(message, stderr); (void)Fflush(stderr); - if (e_fp) { - fclose(e_fp); - e_fp = Nullfp; + if (e_tmpname) { + if (e_fp) { + fclose(e_fp); + e_fp = Nullfp; + } (void)UNLINK(e_tmpname); + Safefree(e_tmpname); + e_tmpname = Nullch; } statusvalue = SHIFTSTATUS(statusvalue); #ifdef VMS @@ -1160,7 +1164,7 @@ const void *b; GvSV(secondgv) = *str2; stack_sp = stack_base; op = sortcop; - run(); + runops(); if (stack_sp != stack_base + 1) croak("Sort subroutine didn't return single value"); if (!SvNIOKp(*stack_sp))