another cosmetic fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3754 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2006-07-05 15:20:16 +00:00
parent 19cb1e6de6
commit aa4eb40e71
1 changed files with 3 additions and 1 deletions

View File

@ -916,7 +916,9 @@ char *get_full_path(const char *origpath)
d_here = getcwd(d_here, PATH_MAX + 1);
while (d_here == NULL) {
chdir("..");
if (chdir("..") == -1)
break;
d_here = getcwd(d_here, PATH_MAX + 1);
}