Re: [PATCH][libgfortran] Fix uninitialized variable use in fallback_access

2018-09-14 Thread Paul Richard Thomas
Hi Kyrill, This indeed is an obvious change. OK for trunk and 7- and 8-branches. Thanks for the patch Paul On 14 September 2018 at 09:06, Kyrill Tkachov wrote: > Hi all, > > I've been tracking down a bug in a Fortran program on a newlib target and it > boils down to fallback_access doing some

[PATCH][libgfortran] Fix uninitialized variable use in fallback_access

2018-09-14 Thread Kyrill Tkachov
Hi all, I've been tracking down a bug in a Fortran program on a newlib target and it boils down to fallback_access doing something bad. The unconditional calls to close cause havoc when open doesn't get called due to the short-circuiting in the if-statement above because the fd is uninitialised