PR 51803 Avoid malloc if getcwd fails or is not available.
commit714d5d034e07eb4e2dc84610f9e86c7590381653
authorjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Jan 2012 09:58:34 +0000 (12 09:58 +0000)
committerjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Jan 2012 09:58:34 +0000 (12 09:58 +0000)
treeecec08b90b14048a337d070bc48ab04deedc35ed
parent80dfb96639957570052a461e465cf403f749672a
PR 51803 Avoid malloc if getcwd fails or is not available.

2012-01-12  Janne Blomqvist  <jb@gcc.gnu.org>
    Tobias Burnus  <burnus@net-b.de>

PR libfortran/51803
* runtime/main.c (store_exe_path): Avoid malloc if getcwd fails or
is not available.

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