comment fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3755 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
aa4eb40e71
commit
afeed5f640
|
@ -911,7 +911,8 @@ char *get_full_path(const char *origpath)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
/* Get the current directory. If it doesn't exist, back up and try
|
/* Get the current directory. If it doesn't exist, back up and try
|
||||||
* again until we get a directory that does. */
|
* again until we get a directory that does, and use that as the
|
||||||
|
* current directory. */
|
||||||
d_here = charalloc(PATH_MAX + 1);
|
d_here = charalloc(PATH_MAX + 1);
|
||||||
d_here = getcwd(d_here, PATH_MAX + 1);
|
d_here = getcwd(d_here, PATH_MAX + 1);
|
||||||
|
|
||||||
|
@ -976,7 +977,7 @@ char *get_full_path(const char *origpath)
|
||||||
* d_there. */
|
* d_there. */
|
||||||
null_at(&d_there, last_slash - d_there + 1);
|
null_at(&d_there, last_slash - d_there + 1);
|
||||||
|
|
||||||
/* chdir() to the path specified in d_there. */
|
/* Go to the path specified in d_there. */
|
||||||
if (chdir(d_there) == -1) {
|
if (chdir(d_there) == -1) {
|
||||||
free(d_there);
|
free(d_there);
|
||||||
d_there = NULL;
|
d_there = NULL;
|
||||||
|
|
Loading…
Reference in New Issue