Commit 5f0c48ed by Geoffrey Keating Committed by Geoffrey Keating

* toplev.c (get_src_pwd): Handle failure of getpwd().

From-SVN: r92910
parent e3523f56
2005-01-04 Geoffrey Keating <geoffk@apple.com>
* toplev.c (get_src_pwd): Handle failure of getpwd().
2005-01-04 Roger Sayle <roger@eyesopen.com>
* fold-const.c (fold_single_bit_test): Delete unreachable handling
......
......@@ -449,7 +449,11 @@ const char *
get_src_pwd (void)
{
if (! src_pwd)
src_pwd = getpwd ();
{
src_pwd = getpwd ();
if (!src_pwd)
src_pwd = ".";
}
return src_pwd;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment