another cosmetic fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3754 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
19cb1e6de6
commit
aa4eb40e71
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue