From: Chip Salzenberg Date: Fri, 5 Dec 2008 13:32:19 +0000 (-0800) Subject: Re: [PATCH] standardize save/restore of errno & vaxc$errno X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f1618b100c0ec32f92c22129d95b09365ef17941;p=p5sagit%2Fp5-mst-13.2.git Re: [PATCH] standardize save/restore of errno & vaxc$errno Message-ID: <20081205213219.GH16081@tytlal.topaz.cx> p4raw-id: //depot/perl@35059 --- diff --git a/util.c b/util.c index 6af4be3..c4fa794 100644 --- a/util.c +++ b/util.c @@ -2875,8 +2875,8 @@ Perl_my_pclose(pTHX_ PerlIO *ptr) return my_syspclose(ptr); } #endif - if ((close_failed = (PerlIO_close(ptr) == EOF))) - SAVE_ERRNO; + close_failed = (PerlIO_close(ptr) == EOF); + SAVE_ERRNO; #ifdef UTS if(PerlProc_kill(pid, 0) < 0) { return(pid); } /* HOM 12/23/91 */ #endif