PR 61187 Fix use of uninitialized memory.
commit7b89cd4f3f63aba6e1bf12dbe1e7774a36eba883
authorjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 May 2014 20:37:13 +0000 (16 20:37 +0000)
committerjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 May 2014 20:37:13 +0000 (16 20:37 +0000)
treee2b9590673b3978f49350f9440fe3aa32bc1ddff
parentde7af99e93eaddf123593b71294cce26559a9df6
PR 61187 Fix use of uninitialized memory.

2014-05-16  Janne Blomqvist  <jb@gcc.gnu.org>

PR libfortran/61187
* io/unix.c (raw_close): Check if s->fd is -1.
(fd_to_stream): Check return value of fstat(), handle error.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210527 138bc75d-0d04-0410-961f-82ee72b054a4
libgfortran/ChangeLog
libgfortran/io/unix.c